Server
Helpful functions for the player data structure and functions
lib.player.get
Get the player's information
src
Source of the target
lib.player.identifier
Returns the identifier (CitizenID) of the player
src
Source of the target
lib.player.name
Returns the name of the character
src
Source of the target
lib.player.phone_number
Return the phone number of the character
src
Source of the target
lib.player.gender
Return the gender of the character
src
Source of the target
lib.player.checkOnline
Check if a player is online by their CitizenID
identifier
Identifier to be checked for
lib.player.jail
Send a player to jail
trg
Source to be targeted
data
Data to be used, for example time
lib.player.addMoney
Add money to a player
src
Source to be targeted
acc
Account to be deposited in
amount
Amount to be moved
reason
Transaction reason
lib.player.removeMoney
Remove money to a player
src
Source to be targeted
acc
Account to be removed
amount
Amount to be moved
reason
Transaction reason
lib.player.addItem
Add item to a player
src
Source to be targeted
item
Item spawncode
amount
Quantity
md
Metadata for the item
slot
Slot to be placed in, default is next available
lib.player.removeItem
Remove an item for a player
src
Source to be targeted
item
Item spawncode
amount
Quantity
md
Metadata for the item
slot
Slot to be placed in, default is next available
lib.player.editItem
Edit the metadata of an item
src
Source to be targeted
slot
Item slot to be targeted
new_data
Data to be set
lib.player.getInventory
Returns the inventory of the player
Example Return:
src
Source to be targeted
Last updated