Skip to main content
If you’re using supported framework you dont have to make any changes in this section.
You can override player actions from no-base/configure/server/player.lua

Examples


Should return unique id for the players current character. (E.g. citizenid on QB identifier on ESX)

Parameters

  • source: number

Returns

  • identifier: string | number
Should return the player id if player is online by provided identifier with GetIdentifier method.

Parameters

  • identifier: string

Returns

  • playerServerId: number (source)
Should return fullname of the player character.

Parameters

  • source: number

Returns

  • fullname: string
Should return array of loaded player server ids.

Returns

  • playerIds: number[]
Should add event handler that will execute the callback whenever the player is loaded.

Parameters

  • cb: func(source: number)
Should add event handler that will execute the callback whenever the player is unloaded.

Parameters

  • cb: func(source: number)
Adds money to player bank account.

Parameters

  • source: number
  • amount: number
  • reason?: string

Returns

  • success: boolean
Removes money from player bank account.

Parameters

  • source: number
  • amount: number
  • reason?: string

Returns

  • success: boolean
Adds money to player inventory.

Parameters

  • source: number
  • amount: number
  • reason?: string

Returns

  • success: boolean
Removes money from player inventory.

Parameters

  • source: number
  • amount: number
  • reason?: string

Returns

  • success: boolean