A simple example for a robbery integration.
-- Robberies (use exports) scoreboardConfig.robberies = { ["Shop Robbery"] = export.esx_holdup:getStatus(), }
local 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)
Last updated 3 months ago
Was this helpful?