rytrak.fr Documentation
  • 🛡️FiveM Assets Escrow
    • You lack the required entitlement
    • Failed to verify protected resource
    • Error parsing script / Failed to load script
  • ❓Store FAQ
    • Do you accept orders to create a custom script
    • Do you give decrypted scripts
    • What payment methods are accepted for the purchase of your scripts?
    • Do you offer discounts or special offers on your scripts?
    • Can I modify or customize your scripts to meet my needs
    • Are your scripts compatible with frameworks
    • Do you provide development assistance?
  • FiveM Scripts
    • 🚒Firefighter SCBA System
      • General Configuration
      • Adapt your EUP
      • General Exports
      • General Events
      • ❓FAQ
        • No such export IsFireNearby in resource SmartFires
      • Test it now
    • 👮‍♂️Advanced Police Grab Ped
      • General Configuration
      • General Exports
      • General Events
      • Compatibility with esx_policejob
      • Test it now
    • 🚿Advanced Pepper Spray
      • General Configuration
      • General Exports
      • Anticheat
      • Test it now
    • 📣Advanced Megaphone System
      • General Configuration
      • General Exports
      • Compatibility with pma-voice
      • Compatibility with mumble-voip
      • Compatibility with saltychat
      • ❓FAQ
        • I can't hear my voice through the megaphone
      • Test it now
    • 🚁Advanced Helicopter Bucket
      • General Configuration
      • Adapt our script with ToxicFire
      • General Exports
      • 🔐Test it now
    • 🔗Advanced Remote Restraint
      • General Configuration
      • General Exports
      • Test it now
    • 🚗Advanced Extrication System
      • General Configuration
      • General Exports
      • Adapt a vehicle to the roof system
      • List of vehicles compatible with the roof system
      • 🔐Test it now
    • 🔗Advanced Handcuffs System
      • General Configuration
      • General Exports
      • Make ESX compatible
      • Make QBCore compatible
      • Make OX-Inventory compatible
      • 🔐Test it now
    • ✈️Advanced Aerial Firefighting
      • General Configuration
      • Adapt our script with ToxicFire
      • General Exports
      • 🔐Test it now
    • 💣Advanced Tactical Gas System
      • General Configuration
      • Test it now
  • RedM Scripts
    • 🤠Advanced Sheriff Grab Ped
      • General Configuration
      • General Exports
  • Framework compatibility
    • Add a custom weapon on ESX
    • Add a custom weapon on QBCore
    • Add a custom weapon on OX Inventory
  • 🚀Test our resources for free with Zap-Hosting
Powered by GitBook
On this page
  • 1. Modify the r_grab Configuration
  • 2. Edit the esx_policejob Script
  • 3. Final Steps
  1. FiveM Scripts
  2. Advanced Police Grab Ped

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

Open the config.lua file of the r_grab resource and make the following changes:

  1. Change the Grab Command

Config.GrabCommand = '+grab'
  1. Change the Put Car Command

Config.PutCarCommand = '+putcar'

2. Edit the esx_policejob Script

Navigate 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:

TriggerServerEvent('esx_policejob:drag', GetPlayerServerId(closestPlayer))

After:

ExecuteCommand('+grab')

2.2 Modify the Put In Vehicle Action

Search for elseif action == 'put_in_vehicle' then and replace the line below it:

Before:

TriggerServerEvent('esx_policejob:putInVehicle', GetPlayerServerId(closestPlayer))

After:

ExecuteCommand('+putcar')

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 and esx_policejob files.

  • Restart your server to apply the updates.

PreviousGeneral EventsNextTest it now

Last updated 4 months ago

👮‍♂️