Hooks/Server/onPlayerFirstJoined
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onPlayerFirstJoined]onPlayerFirstJoined hook[/url][/b] |
Parameters[edit]
- ply (Player)
- data (table)
The player.
Contains the default wallet, salary and RPName that will be put in the database
Return values[edit]
- data (table)
Override the data that is to be put in the database.