Hooks/Server/onPlayerFirstJoined

From DarkRP
Jump to navigation Jump to search
Hook
Hook name onPlayerFirstJoined(Player ply, table data)
Description:
Called when a player joins this server for the first time (i.e. no entry for this player exists in the DarkRP database)
Returns: table data
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onPlayerFirstJoined]onPlayerFirstJoined hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player.

  3. data (table)
  4. Contains the default wallet, salary and RPName that will be put in the database

Return values[edit]

  1. data (table)
  2. Override the data that is to be put in the database.