Compatibility with esx_policejob
This guide explains how to make the esx_policejob script compatible with the Advanced Police Grab Ped resource. Follow the steps below to integrate the functionality smoothly.
1. Modify the r_grab
Configuration
r_grab
ConfigurationOpen the config.lua
file of the r_grab resource and make the following changes:
Change the Grab Command
Change the Put Car Command
2. Edit the esx_policejob
Script
esx_policejob
ScriptNavigate to the esx_policejob/client/main.lua
file and update it as follows:
2.1 Modify the Drag Action
Locate line 675 (or search for elseif action == 'drag' then
) and replace the line below it:
Before:
After:
2.2 Modify the Put In Vehicle Action
Search for elseif action == 'put_in_vehicle' then
and replace the line below it:
Before:
After:
2.3 Delete the Detach Thread
Search for the DetachEntity
function (around line 1565) and remove the entire thread where it is used.
Refer to the GIF below for guidance:
3. Final Steps
Save all changes to the
r_grab
andesx_policejob
files.Restart your server to apply the updates.
Last updated