esx_policejob Compatibility
Last updated
Last updated
To make the esx_policejob script compatible with the Advanced Police Grab Ped, open the configuration file of the r_grab resource and modify these two lines:
Change Config.GrabCommand by '+grab'
Change Config.PutCarCommand by '+putcar'
Then open the file esx_policejob/client/main.lua
Go to line 675 or search elseif action == 'drag' then
and modify the line below TriggerServerEvent('esx_policejob:drag', GetPlayerServerId(closestPlayer))
by ExecuteCommand('+grab')
Search elseif action == 'put_in_vehicle' then
and modify the line below TriggerServerEvent('esx_policejob:putInVehicle', GetPlayerServerId(closestPlayer))
by ExecuteCommand('+putcar')
To finish, delete the Thread at the line about 1565 or search for DetachEntity
and delete the Thread like the gif below