⁉️Server Setup
Quick guide on how to set up your server to be ready for our police job script.
Five Manage API Key
This is required for our script to work properly on your server!
Target resource setup
1. ox_target
First Step
Open ox_target / client / main.lua
Second Step
Find in code this nearbyZones, zonesChanged = utils.getNearbyZones(endCoords)
Third Step
Add code under this line like on screenshot
local localState = LocalPlayer.state
if localState.draggingPlayer or localState.carryingPlayer then
entityHit = GetPlayerPed(GetPlayerFromServerId(localState.draggingPlayer or localState.carryingPlayer))
dist = 0
end

Fourth Step
Scroll down and look for if entityHit > 0 then
(If you can't find it, use CTRL + F)
Fifth Step
Make space for our snippet, and insert code below under if entityHit > 0 then
if localState.draggingPlayer or localState.carryingPlayer then
entityHit = GetPlayerPed(GetPlayerFromServerId(localState.draggingPlayer or localState.carryingPlayer))
entityType = 1
distance = 0
end

File ready to go (ox_target 1.16.0)
Modified client/main.lua file if you have issue with modifying the file [ox_target 1.16.0]
2. qb-target
First Step
Open qb-target / client.lua
Second Step
Find line while targetActive do
in function EnableTarget()
Third Step
Add code below like on screenshot.
local localState = LocalPlayer.state
if localState.draggingPlayer or localState.carryingPlayer then
entityType = 1
entity = GetPlayerPed(GetPlayerFromServerId(localState.draggingPlayer or localState.carryingPlayer))
distance = 0
end

First Step
Find local function CheckEntity
Second Step
Add following code like on screenshot.
local localState = LocalPlayer.state
if localState.draggingPlayer or localState.carryingPlayer then
entity2 = GetPlayerPed(GetPlayerFromServerId(localState.draggingPlayer or localState.carryingPlayer))
end

File ready to go
Modified client.lua file if you have issue with modifying file [Only for original qb-target without any additional modifications and/or changes]
Voice script setup
pma-voice
If you want to use our radio animation menu follow these steps
First Step
Open your server.cfg file
Second Step
Locate setr voice_enableRadioAnim 1
and set 1
to 0
Last updated