While using the Command Wheel, each time I use it I always get a System Error in chat stating Invalid command but it works anyways… Anyway I can prevent this or make that not appear?![]()
Apparently I have used a deprecated way of using chat messages to trigger events.
Open Radialmenu/radial_sv.lua. Try adding the following code below the event:
RegisterCommand("pd5m:tow:calltowtruck", function(source, args)
end)
See if that fixes the problem. If yes it needs to be added for every command that is mentioned in the Event Handler that starts at line 3. I’ll try to post a fix to this at some point.
Hey Silverman,
I noticed you were asking about spawning NPC’s into the world at a distance when using OneSync. I know myself that this is an issue as when you go a certain distance, they dissapear and that spawning the NPC’s server sided instead and creating a loop to see if the entity still exists was a workaround.
Did you get far with this?
I only ask as I created near the same thing, using PIS as a base.
Created a crap load of callouts, then when moving to OneSync i am having rewrite the NPC spawning.
Thanks
If I get it working I will post the radial_sv.lua here for others to grab
Could not get it to work properly, just going to grab the Radial Menu on its own and enter the commands in there.
I’m still a rookie at coding, I can’t get it figured out.
Even the /rank command is giving that error.
I appreciate that you are willing to look at making a fix for it a somepoint, looking forward to it 
Awesome job!
Also wanted to add, that the coroner crashes the clients when he picks up the dead bodies.
Could you please specify that error in more detail? Is this an issue with OneSync or normal?
Note, I coded this on an older version and didn’t use OneSync however it should be mostly stable with OneSync. Exception is Coroner and Towtruck that can’t be spawned the way I do it.
Thanks, I hope you like the script. Thank you for creating PIS which was a heavy inspiration! Checking the source code of Interaction/interaction_cl.lua I believe there should be certain similarities…
I’m on Legacy “Normal” and that error happens with any and every command you do, either with the wheel or chat command. But the command still works, for some reason, it throws the error.
![]()
The tow truck works fine, and the coroner crashes clients when they pick up the dead ped.
I do know of the command issue which is not critical.
It’s the coroner-issue I’m concerned of. What is the crash-message shown, how do you reproduce the issue, does it happen sometimes or every time, did you try to change anything in the code, …?
Last few times it happened there was not a crash log generated, it was a full client crash. I will continue to do it for a while and see if I can get it to generate me one and I’ll get back to you.
nice releases!!
Hi Silverman,
Any update on the callouts? I have been following this script for almost a year now - cant wait for the callouts or missions. Additionally, do you know how i can pay officers who turn in evidence or jail peds?
Hey there,
apart from the small yt-video I posted two months ago sadly no update. I’ve had no time to continue coding and the endeavour is quite complicated…
I’ll try taking a week off in the near future to continue, will publish this here and ask for help.
As to paying officers that is a huge risk:
Currently there is no way of determining whether peds have been lawfully jailed or evidence was actual evidence or random items. Thus any noticeable pay would definitely be abusable by arresting random peds.
Because of this there is no ESX/vRP-optional implemented and doesn’t get supported by me. If you want to add payment nontheless (check for ESX-documentation on how to do that), check the files Interaction/interaction_cl.lua lines 3469 to 3528 and HUD/markers_cl.lua lines 1946 to 1985. These contain everything regarding arresting and evidence.
There was an idea of giving peds a multiplier between -1 and 1 depending on their “guilt level”, e.g. mult = 1. This number would be multiplied to the maximum amount of cash you get for an arrest, e.g. $5000, in code maxCash = 5000 . The officer always recieves an amount of money equal to mult * maxCash. If the ped was innocent i.e mult = -1 the officer would need to PAY $5000 instead of recieving it.
This is risky however as you need to catch every single case of bad behavior that might result in an arrest (or maybe a ticket). If you want to implement that message me so I can assist further (where to add the multiplier; what should influence the level of guilt; which parameters exist in the code that can be utilized to change that level; …).
Did you ever get the scrypt to run this with esx_policejob im also wanting to deploy this on my server but im wanting to create a permissions set (So only certain users with that permission) can use this Resource is there a way to do that anyone ? (im learning bare with me please)
Hijacking for the answer, hope it’s ok ^^
As it is mentioned in the credits MobTV provided some sort of ESX-integration. You’ll need esx_policejob but can activate a variable in fxmanifest.lua which should restrict the menus to police officers only.
You’ll need to test if everything works, also I can only offer limited support (I don’t use ESX myself). But in theory it should work.
Whenever i activate esx (with the correct trigger) nothing in the script works - When i set esx = false everything works. Any ideas?
Hey,
does your character have the police-job in esx-policejob? You need esx policejob and have your char be an officer on duty I believe. If everything I wrote is the case shoot me a dm pls.
Since Ive installed not all my lights are working. Any fix for that?