Standalone Tablet
-- Purpose: Framework specific usable item creation.
if Config.EnableStandaloneTablet and Config.TabletItemName then
if Config.Framework == "qbcore" then
Framework.Functions.CreateUseableItem(Config.TabletItemName, function(source)
TriggerClientEvent("gs-trucking:client:openTablet", source)
end)
elseif Config.Framework == "esx" then
Framework.RegisterUsableItem(Config.TabletItemName, function(source)
TriggerClientEvent("gs-trucking:client:openTablet", source)
end)
end
endGet Player
-- Purpose: Function to get the player object from the source ID.
-- source [int]: Players source ID
function GetPlayer(source)
if not source then return nil end
if Config.Framework == "qbcore" then
return Framework.Functions.GetPlayer(source)
elseif Config.Framework == "esx" then
return Framework.GetPlayerFromId(source)
end
endGet Identifier
Get Players Money
Give Player Money
Remove Player Money
Player Reputation (Add/Remove)
Police Count
Last updated