Player
This is the way of getting the Core API Functions (Server Side)
local TPZ = exports.tpz_core:getCoreAPI()Get Player Object
This is the following example of how to get the Player Object for using all the following functions.
local xPlayer = TPZ.GetPlayer(source)Player Inventory
You can also use all the Inventory API functions on the Player Object directly (such as: xPlayer.addItem(), xPlayer.removeItem(), etc)
Player Functions
Loaded Player
local hasPlayerLoaded = xPlayer.loaded()Get Player Total Characters Number
local chars = xPlayer.getTotalCharactersNum()Get Player Weight Capacity (Maximum Capacity)
Set Player Weight Capacity (Maximum Capacity)
Add Player Weight Capacity (Maximum Capacity - Current + Extra Capacity)
Get Player Identifier
Get Player Character Identifier
Get Player Gender
Get Player Dob
Set Player Dob
Get Player Group
Set Player Group
Get Player Dead / Not State.
Get Player Identity Id
Change Player Identity Id.
Get Player Outfit Comps
Get Player First name
Set Player First name
Get Player Last name
Set Player Last name
Get Player Job
Set Player Job
Get Player Job Grade
Set Player Job Grade
Get Player Account (0-3 Available)
Add Player Account (0-3 Available)
Remove Player Account (0-3 Available)
Get Player Last Saved Location
Save Player Current Location
Player Teleport Target Coords
Player Teleport Target Source
Player Bring (Tphere) Target Source
Has Player Administrator Permissions (Boolean)
Get Player Discord Roles
Reload Player Character Skin
Save Player Character Data
Delete Player Character (Permanently)
Drop Player (Kick)
Suicide (Kill) Player
Ban Player
Add Player Warning
Set Player Warnings
Clear - Reset All Player Warnings
Delete Player Used Character
Last updated