Wasabi Scripts
StoreDiscordGitHub
  • Documentation
  • Dependency
    • 🔗wasabi_bridge
      • Dependencies
      • Installation
      • Configuration
      • Custom Notifications
      • Common Issues & Fixes
  • Advanced Series
    • 🚑wasabi_ambulance
      • Dependencies
      • Installation
      • Configuration
      • Death Screens
      • Exports / Events
      • State Bags
      • Customizations
      • Common Issues
        • QBCore
    • 🩺wasabi_crutch
      • Dependencies
      • Installation
      • Configuration
      • Exports
    • 👮‍♂️wasabi_police
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • State Bags
      • Events
      • Customizations
    • 🔎wasabi_evidence
      • Dependencies
      • Installation
      • Configuration
      • Customizations
    • 🛡️wasabi_adminmenu
      • Dependencies
      • Installation
      • Configuration
    • 👷wasabi_multijob
      • Dependencies
      • Installation
      • Configuration
      • Replace ESX Boss Menus
    • 🔑wasabi_carlock
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • Common Issues
        • QBCore
  • Core UI Series
    • 🖥️wasabi_loadingscreen
      • Configuration
    • 🧑‍🤝‍🧑wasabi_multichar
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • Events
    • 💳wasabi_banking
      • Dependencies
      • Installation
      • Configuration
      • Exports
    • 👼wasabi_spawn
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • Events
    • 🔔wasabi_notify
      • Exports / Events
      • Configuration
      • Change Framework Notify
    • ⏸️wasabi_pausemenu
      • Dependencies
      • Installation
      • Configuration
      • Exports
  • Heist Series
    • 🏦wasabi_pacificrobbery
      • Dependencies
      • Installation
      • Configuration
      • Events
    • 🏦wasabi_paletorobbery
      • Dependencies
      • Installation
      • Configuration
      • Events
    • 🏦wasabi_fleecarobberies
      • Dependencies
      • Installation
      • Configuration
      • Events
  • 💎wasabi_vangelicorobbery
    • Dependencies
    • Installation
    • Configuration
    • Events
  • 🔫wasabi_ammunationrobbery
    • Dependencies
    • Installation
    • Configuration
    • Events
  • 🚢wasabi_yachtheist
    • Dependencies
    • Installation
    • Configuration
    • Events
  • Free Releases
    • 👕fivem-appearance
      • Installation
      • Dependencies
      • Common Issues
      • Snippets
      • Exports
      • Examples
    • 👩‍💻wasabi_discord
      • Installation
      • Exports
Powered by GitBook
On this page
  1. Heist Series
  2. wasabi_pacificrobbery

Events

Possibly useful events to use with 3rd party scripts or integrations.

Server-Side

wasabi_pacificrobbery:onRobberyStarted(source)

Triggered when a robbery is started.

source : integer

Example:

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

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

success: bool reason: string

Example:

RegisterNetEvent('wasabi_pacificrobbery:onRobberyStarted', function(success, reason) 
    print('The heist: '..source..' started just ended because of '..reason)
end)
wasabi_pacificrobbery: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_pacificrobbery: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_pacificrobbery:onDoorOpened(source, door)

Triggered when a door is opened.

source: integer door: table

Example:

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

Triggered when laser zone is disabled.

source: integer laserZone: table

Example:

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

Last updated 2 months ago

🏦