Functions/DarkRP/Server/createPlayerData

From Official DarkRP Wiki
Jump to: navigation, search
Function
Function name DarkRP.createPlayerData(Player ply, string name, number wallet, number salary)
Description:
Internal function: creates an entry in the database for a player who has joined for the first time.
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/createPlayerData]DarkRP.createPlayerData[/url][/b]

Function parameters

  1. ply (Player)
  2. The player to create the data for.

  3. name (string)
  4. The name of the player.

  5. wallet (number)
  6. The amount of money the player has.

  7. salary (number)
  8. The salary of the player.


Function return values

This function does not return any value.