âŠī¸Events
Events can be requested at our discord! (discord.gg/crimem)
When registering these events in different resources, you MUST replace the "GetCurrentResourceName()" to the name of this script.
Example: GetCurrentResourceName..':onRobberyStarted' -> 'cm_vangelicorobbery:onRobberyStarted'
Server Side
onRobberyStarted
RegisterNetEvent(GetCurrentResourceName()..':onRobberyStarted', function(playerId)
-- Code here
end)
onRobberyEnded
RegisterNetEvent(GetCurrentResourceName()..':onRobberyEnded', function(playerId, success, reason)
-- Code here
end)
onLootTaken
RegisterNetEvent(GetCurrentResourceName()..':onLootTaken', function(playerId, type, loot)
-- Code here
end)
onDoorOpened
RegisterNetEvent(GetCurrentResourceName()..':onDoorOpened', function(playerId, door)
-- Code here
end)
onLaserZoneDeactivated
RegisterNetEvent(GetCurrentResourceName()..':onLaserZoneDeactivated', function(playerId, laserZone)
-- Code here
end)