if exports['qb-policejob']:IsHandcuffed() then return end
-- if exports['qb-policejob']:isHandcuffed() then return end
RegisterNetEvent('police:client:GetCuffed', function()
PlayerData.cuffed = not PlayerData.cuffed
LocalPlayer.state:set('invBusy', PlayerData.cuffed, false)
if not PlayerData.cuffed then return end
Weapon.Disarm()
end)
["police"] = {
{
id = 'emergencybutton',
title = 'Emergency button',
icon = 'bell',
type = 'client',
event = 'police:client:SendPoliceEmergencyAlert',
shouldClose = true
}, {
id = 'checkvehstatus',
title = 'Check Tune Status',
icon = 'circle-info',
type = 'client',
event = 'qb-tunerchip:client:TuneStatus',
shouldClose = true
}, {
id = 'resethouse',
title = 'Reset house lock',
icon = 'key',
type = 'client',
event = 'qb-houses:client:ResetHouse',
shouldClose = true
}, {
id = 'takedriverlicense',
title = 'Revoke Drivers License',
icon = 'id-card',
type = 'client',
event = 'police:client:SeizeDriverLicense',
shouldClose = true
}, {
id = 'policeinteraction',
title = 'Police Actions',
icon = 'list-check',
items = {
{
id = 'statuscheck',
title = 'Check Health Status',
icon = 'heart-pulse',
type = 'client',
event = 'hospital:client:CheckStatus',
shouldClose = true
}, {
id = 'checkstatus',
title = 'Check status',
icon = 'question',
type = 'client',
event = 'police:client:CheckStatus',
shouldClose = true
}, {
id = 'escort',
title = 'Escort',
icon = 'user-group',
type = 'client',
event = 'police:client:EscortPlayer',
shouldClose = true
}, {
id = 'searchplayer',
title = 'Search',
icon = 'magnifying-glass',
type = 'client',
event = 'police:client:SearchPlayer',
shouldClose = true
}, {
id = 'jailplayer',
title = 'Jail',
icon = 'user-lock',
type = 'client',
event = 'police:client:JailPlayer',
shouldClose = true
}
}
}, {
id = 'policeobjects',
title = 'Objects',
icon = 'road',
items = {
{
id = 'spawnpion',
title = 'Cone',
icon = 'triangle-exclamation',
type = 'client',
event = 'police:client:spawnCone',
shouldClose = false
}, {
id = 'spawnhek',
title = 'Gate',
icon = 'torii-gate',
type = 'client',
event = 'police:client:spawnBarrier',
shouldClose = false
}, {
id = 'spawnschotten',
title = 'Speed Limit Sign',
icon = 'sign-hanging',
type = 'client',
event = 'police:client:spawnRoadSign',
shouldClose = false
}, {
id = 'spawntent',
title = 'Tent',
icon = 'campground',
type = 'client',
event = 'police:client:spawnTent',
shouldClose = false
}, {
id = 'spawnverlichting',
title = 'Lighting',
icon = 'lightbulb',
type = 'client',
event = 'police:client:spawnLight',
shouldClose = false
}, {
id = 'spikestrip',
title = 'Spike Strips',
icon = 'caret-up',
type = 'client',
event = 'police:client:SpawnSpikeStrip',
shouldClose = false
}, {
id = 'deleteobject',
title = 'Remove object',
icon = 'trash',
type = 'client',
event = 'police:client:deleteObject',
shouldClose = false
}
}
}
},
if invokingResource and invokingResource ~= 'qb-policejob' and invokingResource ~= 'qb-ambulancejob' and invokingResource ~= GetCurrentResourceName() then
if invokingResource and invokingResource ~= 'apex_lawenforcement' and invokingResource ~= 'qb-ambulancejob' and invokingResource ~= GetCurrentResourceName() then