> filo_studios
Paid Resources🚓 filo_police

Installation

Dependencies, items, jobs, MDT and building stations.

Dependencies

ResourceRequiredUsed for
ox_lib, oxmysql, qbx_coreYesEverything
ox_inventory, ox_targetYesItems, stashes, shops and targets
filo_joblibYesCarry, escort, vehicles, cuffs and job GPS (included in the download)
qbx_idcardYesID and licence cards
MugShotBase64For mugshotsHeadshot pictures
qbx_managementFor boss menusBoss menu points
illenium-appearanceFor wardrobesWardrobe points
sd-phone / sd-tabletOptionalMDT and the panic call
screencaptureOptionalOfficer's-view mugshot for Discord or a CDN
op-garagesOptionalImpound
filo_vehiclekeysOptionalKeys for garage vehicles
sleepless_promptsOptionalKey prompts for carry and escort

Setup

Put filo_police and filo_joblib in your resources folder.

Remove what it replaces, or they'll clash:

  • Any other police job (for example wasabi_police): a second F6 menu and its own handcuffs.
  • um-idcard: qbx_idcard uses the same events and item.
  • Hands up in your emotes resource (filo_joblib has filo_handsup, default X), and rope in your crime scripts.

server.cfg:

ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure MugShotBase64
ensure qbx_idcard
ensure filo_joblib
ensure filo_police

The database tables are created on the first start.

Add the items below to ox_inventory/data/items.lua, plus the filo_joblib items.
Set up your departments in Config.departments and register their jobs in qbx_core/shared/jobs.lua. Give the same jobs to filo_joblib (Config.interactions.jobs, Config.cuffs.jobs, Config.gps.jobs).
For the MDT, set Enabled = true in sd-phone/configs/mdt.lua and keep a department for each police job (job = 'police', type = 'leo').
Set your server name, logo and colours in Config.branding, then build your stations in game (below).

Items

['wheelclamp'] = {
    label = 'Wheel Clamp',
    weight = 5000,
    stack = true,
    client = { export = 'filo_police.wheelclamp' },
},
['breathalyzer'] = {
    label = 'Breathalyser',
    weight = 300,
    stack = false,
    client = { export = 'filo_police.breathalyzer' },
},
['drugtest'] = {
    label = 'Drug Test',
    weight = 50,
    stack = true,
    client = { export = 'filo_police.drugtest' },
},

-- qbx_idcard cards
['id_card'] = { label = 'ID Card', stack = false },
['driver_license'] = { label = "Driver's License", stack = false },
['weaponlicense'] = { label = 'Firearms License', stack = false },
['police_badge'] = { label = 'Police Badge', weight = 100, stack = false },

Build the stations

  1. Run /policecreator as an admin (group.admin).
  2. Pick a type on the left, then New, and set the label, jobs, lowest grade and an optional ped.
  3. Click Place, aim at the spot and press E. G uses your own position, scroll rotates and X cancels. Garages also need a vehicle spawn.
  4. Save. The point appears for everyone straight away. Show in world draws every point near you.

Then set each department's settings in /policecreator > Departments.

Mugshot keys

Add these to your server config as needed:

set filo_police_mugshot_webhook "https://discord.com/api/webhooks/..."
set filo_police_qbox_cdn_key "..."       # upload = 'qbox'
set filo_police_fivemanage_key "..."     # upload = 'fivemanage'
set filo_police_cdn_key "..."            # upload = 'custom' (also set cdns.custom.url)

With the default headshot.upload = 'sd-phone', the headshot uses the provider set in sd-phone/configs/photos.lua.

On this page