Skip to main content

Events

Possibly useful events within Vangelico Robbery (wasabi_vangelicorobbery) to use with 3rd party scripts or integrations.


Server-Side

wasabi_vangelicorobbery:onRobberyStarted(source)

Triggered when a robbery is started.

source : integer

Example:

RegisterNetEvent('wasabi_vangelicorobbery:onRobberyStarted', function(source)
print('Player: '..source..' just started a heist')
end)
wasabi_vangelicorobbery:onRobberyEnded(success, reason)

Triggered when a robbery is ended. Reason depending on translation.

success: bool
reason: string

Example:

RegisterNetEvent('wasabi_vangelicorobbery:onRobberyEnded', function(success, reason)
print('The heist: '..source..' started just ended because of '..reason)
end)
wasabi_vangelicorobbery:onLootTaken(source, type, loot)

Triggered when a robbery is ended.

source: integer
type: string
loot : table

Available Types: 'trollies', 'stacks', 'paintings', 'displays', 'lockers', 'safes', and 'smashes'

Example:

RegisterNetEvent('wasabi_vangelicorobbery:onLootTaken', function(source, type, loot)
print('Player '..source..' has taken loot:')
print('Type: '..type)
print('Loot Taken:')
print(json.encode(loot, {indent=true})
end)
wasabi_vangelicorobbery:onDoorOpened(source, door)

Triggered when a door is opened.

source: integer
door: table

Example:

RegisterNetEvent('wasabi_vangelicorobbery:onDoorOpened', function(source, door)
print('Player '..source..' has opened door.')
print('Door Info:')
print(json.encode(door, {indent=true})
end)
wasabi_vangelicorobbery:onLaserZoneDeactivated(source, laserZone)

Triggered when laser zone is disabled.

source: integer
laserZone: table

Example:

RegisterNetEvent('wasabi_vangelicorobbery:onLaserZoneDeactivated', function(source, laserZone)
print('Player '..source..' has deactivated a laser zone')
print('Laser Zone Info:')
print(json.encode(laserZone, {indent=true})
end)

[