You can modify the lua script related to your framework or use the standalone to customize your own solutions. Depending on the framework you chose, these functions may look different.

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
end

Ownership

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
end

Stash / 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