Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coding Newbie not sure how to use. #1

Open
jpoblocki77 opened this issue Sep 29, 2021 · 3 comments
Open

Coding Newbie not sure how to use. #1

jpoblocki77 opened this issue Sep 29, 2021 · 3 comments

Comments

@jpoblocki77
Copy link

Where exactly do we put all the info and the trigger event info. Like I want a menu that says Job and depending on what job you have it gives you actions like cuff search person search vehice but im not sure what to put where

uidata = {
['Ask Question'] = {
['title'] = 'Cuff Crook',
['fa'] = '',
['type'] = 'export', -- event / export
['content'] = 'ruskicuff', -- EVENT
['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false, exports = 'exports["esx_ruski_areszt:startAreszt"]:StartKeyMaster'},

im guesesing but not sure where the
TriggerEvent('renzu_contextmenu:insert',uidata,"MENU TITLE","ENTITY",true) goes

@renzuzu
Copy link
Owner

renzuzu commented Oct 1, 2021

After inserting the data you need to open the menu using

The showui event

@jpoblocki77
Copy link
Author

so where do i use the showui event and how would I make it work with jobs and such? And I am taking it that the information I gave you is correct??? that is what is in the code for the F6 Menu for jjobs and such

@jpoblocki77
Copy link
Author

sorry im a newbie and not really sure where to put that event so that everyone canuse it but only people with the job will get the job menus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants