Robbery Integration
A simple example for a robbery integration.
Using exports (example)
Set the export in the scoreboard config.lua
config.lua scoreboardConfig.robberies = {
["Shop Robbery"] = export.esx_holdup:getStatus(), -- Title and export
}Create the export in the server.lua of your robbery script
server.lua of your robbery scriptlocal rob = false
RegisterServerEvent("esx_holdup:tooFar", function(currentStore)
rob = false
end)
RegisterServerEvent("esx_holdup:robberyStarted", function(currentStore)
rob = true
end)
exports("getStatus", function()
return rob
end)Explanation
Last updated