πŸ‘¨β€πŸ’»Developers

This contains important exports to intergrate our job into your system if needed. By default all should work without.

Exports

Server Exports

Get the amout of weapons available at the LSPD:

-- 'weapon' is a String and uppercase
-- 'amount' is an Interger
local amount = exports['mfp_policejob']:getWeaponStock(weapon)

Get the mileage:

-- 'plate' is a String
-- 'amount' is an Interger
local amount = exports['mfp_policejob']:GetCarMileage(plate)

Handcuff a player / uncuff a player:

-- 'canmove' true to make moveable, false to freeze
-- 'target' is the target
exports['mfp_policejob']:Handcuff(target, canmove)

Get Vehicleinformation

-- 'plate' is a String
-- vehinfo.registered (bool): true/false
-- vehinfo.first_registration (String): date as a string
-- vehinfo.owner (String): First & Lastname
local vehinfo = exports['mfp_policejob']:getVehicleInfos(plate)

Get Playerdata with licences, weapons, inventory, money

Client Exports

Open the F6 Interaction menu

Open the Police Wardrope

Set the uniform of an officer

Trigger the activation of ur own panicbutton

Customize Weapons at Armory

add the following lines at client/client.lua:383

import the following sql-statement:

Thats it, you are good to go! πŸ‘

Last updated