Functions
This is the way of getting the Core API Functions (Client Side)
local TPZ = exports.tpz_core:getCoreAPI()
API Functions (Client Side)
Player & Entity Ped API Functions
Get Player Client Data
-- @param data.source
-- @param data.loaded
-- @param data.identifier
-- @param data.charIdentifier
-- @param data.money
-- @param data.gold
-- @param data.blackmoney
-- @param data.firstname
-- @param data.lastname
-- @param data.gender
-- @param data.dob
-- @param data.job
-- @param data.jobGrade
-- @param data.identityId
local data = TPZ.getPlayerClientData()
-- If player is in session we return the rest of the code.
if data == nil then
return
end
print(data.firstname .. " " .. data.lastname)
Display Progress Bars
TPZ.DisplayProgressBar(cooldown, text) -- client side only
Teleport Player to coordinates.
TPZ.teleportToCoords(x, y, z, heading) -- client side only
Get closest peds nearby the target ped id.
-- @param entityPed : The required ped id (such as PlayerPedId() ).
-- @param distance : The distance to check for the closest peds based on the @entityPed coordinates.
-- returns table.
local closestPeds = TPZ.getClosestPedsNearbyTargetPed(entityPed, distance)
-- The specified table returns the following data when looping:
-- @entity - The entity id.
-- @pedType - The entity ped type.
-- distance - How close the entity is to the @entityPed target.
-- isDead - If the entity is dead or not.
Notifications
TPZ.NotifyLeft(firsttext, secondtext, dict, icon, duration, color) -- client side to client side
TPZ.NotifyTip(text, duration) -- client side to client side
TPZ.NotifyTop(text, location, duration) -- client side to client side
TPZ.NotifyRightTip(text, duration) -- client side to client side
TPZ.NotifyObjective(text, duration) -- client side to client side
TPZ.NotifySimpleTop(title, subtitle, duration) -- client side to client side
TPZ.NotifyAvanced(text, dict, icon, text_color, duration, quality) -- client side to client side
TPZ.NotifyBasicTop(text, duration) -- client side to client side
TPZ.NotifyCenter(text, duration) -- client side to client side
TPZ.NotifyBottomRight(text, duration) -- client side to client side
TPZ.NotifyFail(title, subtitle, duration) -- client side to client side
TPZ.NotifyDead(title, audioRef, audioName, duration) -- client side to client side
TPZ.NotifyUpdate(utitle, umsg, duration) -- client side to client side
TPZ.NotifyWarning(title, msg, audioRef, audioName, duration) -- client side to client side
TPZ.NotifyLeftRank(title, subtitle, dict, icon, duration, color) -- client side to client side
Last updated