From Official DarkRP Wiki
Jump to navigation Jump to search
Hook name onPlayerFirstJoined(Player ply, table data)
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]


  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

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