How do I make the police menus work for example? to impound a vehicle
Add a Impound menu item to the police menu list.
let policeMenu = [ "police impound", .... ]
Call it something like āpolice impoundā
Then in the switch case you add, case āpoliceimpoundā and use the same callback as the normal impound as they do the same:
$.post('https://contextmenu/impound', JSON.stringify({}));
Could you give me an example of how to add an action to the menu? Like impound or similar, I to use as template
Do you have any coding experience? Its fairly straight forward to add your own menu options as explained above.
You simply add another item to the array at the top of the js. like ālet policeMenu = ā . There are comments all over my code on what happens.
Where to insert this code? exactly. Iām really suffering from the same issue uāre
well⦠its a local function⦠so if u wanna go simple like i did, i shove it right in the contextmenu-c.lua under the āRegisterNUICallback(āuseā, function(data)ā section⦠can be anywhere reallyā¦
and please dont use TriggerEvent(āburn:chatmsgā ⦠it does not existe outside my server⦠replace or erase itā¦
im dealing with hospital and covid crap so i wont go into much deeper details⦠the Captain already made it a breeze to read with commenting everything⦠once i did radio⦠i felt invincible⦠sky is the limitā¦

Thanks for the response , I feel sorry you have got infected. I hope you feel better soon!! and sorry to bother you.
iāll try the code , im using mythic tho. here is a pic .
I hope it works on all the game Radioās because I canāt find the radio displayed in your picture.!!

no MenuRadio()
its not that simple⦠its not just copy paste and reboot serverā¦
also its a local function so i suggest you get it out of the āuseā call back⦠or erase the function MenuRadio if u want to leave the code straight in the āuseā callback
if i hide the inside to show you what i mean by⦠local function outside the RegisterNUICallback

i had to edit also the index.css in html⦠and the index.js
and to answer a past question, pretty sure its gonna work on all radio⦠and if like atm⦠there is 3 or more hashes of radios over los santos⦠im gonna add them all as soon as i find em⦠or as the radio annoys me
Hey man love the script even tho i am editing it quite a bit to fit my liking. I found a weird thing with the return of objects, only certain objects return. For example 506770882 but like prop_rock_2_a and prop_tree_eucalip_01 dont seem to be found by the ray cast. Was just wondering if you had anything happen like this.
edit: Fixed by setting flag to -1 even tho i am sure this will cause errors later lmao
Hmm⦠interesting that rocks and trees donāt count as normal entities. Not sure why that is. I know that the flag was set to 30 to make it so the ray cast wouldnāt trigger on the world itself like buildings and such. Maybe the way the trees and rocks a placed fall under that category somehow.
Setting it to -1 might cause issues yeah like it wonāt register the entity first try but shouldnāt break it.
Yeah i found it very odd too. But aye that is gta for ya lmao
I ran into a problem when I try to call a function using export - the resource NUI opens, but the cursor does not appear.
Besides, I canāt close NUI.
Hmm, i donāt have much experience with Exports but to close the NUI open up the F8 console and type nui hit enter and then hit Esc. That should close it.
Unfortunately, it didnāt help. NUI another resource is still hanging on the screen.
Interestingly, I used exactly the same export in another resource - and the NUI opened correctly, the cursor appeared, closing the UI worked correctly.
Really cool reminds me of arma 3 ace interactions, have you released this?
Sorry to bother you, but how did you managed to get the ESX jobname?
Hello, can someone help me to put the values so that it can start to be used as is the process to put them correctly for the police
Works perfectly. I have one issue tho. When i restart my server and join it i have to restart the script for it to work
And yes, i have started it in my cfg
