renzuzu / renzu_contextmenu

FIVEM - CLEAN CONTEXT MENU for Targeting Purpose
28 stars 8 forks source link

Coding Newbie not sure how to use. #1

Open jpoblocki77 opened 3 years ago

jpoblocki77 commented 3 years ago

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

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

renzuzu commented 3 years ago

After inserting the data you need to open the menu using

The showui event

jpoblocki77 commented 3 years ago

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 commented 3 years ago

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