Example ScriptNew
Example Script: Exports & Events
Integrate Example Script with your own resources.
v1.0.0Escrow protectedQBox · QBCore · ESX
Client exports
openMenu
Opens the main menu for the local player.
exports.example_script:openMenu()isBusy
Returns true while the player is doing an example job.
local busy = exports.example_script:isBusy()Server exports
addProgress
Adds progress to a player's current job.
exports.example_script:addProgress(source, 25)Prop
Type
Events
example_script:jobCompleted
Triggered on the server when a player finishes a job.
AddEventHandler('example_script:jobCompleted', function(source, payout)
print(('Player %s earned $%s'):format(source, payout))
end)Server only
Never trigger this event from the client; it is not network safe.