Police Check
This is where a players job is checked and returns true if they have a configured police job, returns false otherwise
-- Purpose: Check if player is police officer
-- return [bool]: Whether the player is a police officer
function IsPolice()
return false
endOwnership
This will check if a player owns the motorhome or has keys.
-- Purpose: Function to check if the player has ownership of a vehicle.
-- vehicle [int]: Vehicle entity
-- return [bool]: Whether the player has ownership of the vehicle
function HasOwnership(vehicle)
--QBcore Vehicle Keys
--local Promise = promise.new()
--Framework.Functions.TriggerCallback('qb-vehiclekeys:server:checkPlayerOwned', function(playerOwned)
-- Promise:resolve(playerOwned)
--end, Framework.Functions.GetPlate(vehicle))
--local result = Citizen.Await(Promise)
--return result
--Quasar Vehicle Keys
--local result = exports['qs-vehiclekeys']:GetKey(GetVehicleNumberPlateText(vehicle))
--return result
return true
endStash / Inventory
Configure an inventory system that works best for you. Triggered when someone interacts with the stash location
Clothes / Wardrobe
Configure an clothing system that works best for you. Triggered when someone interacts with the wardrobe location
Last updated