Events

It's important you listen to non networked events correctly, read listening for events (opens in a new tab) and RegisterNetEvent (opens in a new tab).

ND:moneyChange

This event will be triggered when a player account balance changes. This event is not safe for net and should only be listened to.

parameters

  • source: number
  • account: string
  • amount: number
  • action: string
  • reason: string

action can be "set", "remove", and "add"

AddEventHandler("ND:moneyChange", function(source, account, amount, action, reason)
 
end)

ND:characterUnloaded

This event will be triggered when a player leaves or changes their character, that's when that character gets unloaded. This event is not safe for net and should only be listened to.

parameters

  • source: number
  • character: table

character includes player data and player functions

AddEventHandler("ND:characterUnloaded", function(source, character)
 
end)

ND:characterLoaded

This event will be triggered when a player selects a character. This event is not safe for net and should only be listened to.

parameters

  • character: table

character includes player data and player functions

AddEventHandler("ND:characterLoaded", function(character)
 
end)

updateCharacter

This is triggered if any character data is changed.

parameters

  • character: table

character contains player data

AddEventHandler("ND:updateCharacter", function(character)
    print(character.firstname, character.lastname)
end)