Server
Server API Overview
ps_lib
exposes a variety of useful server-side utilities designed to streamline player management, jobs, gangs, and gameplay logic. Here's a categorized summary of the available server API functions:
These functions handle player data, identity, state, and economy.
getPlayer
getPlayerByIdentifier
getOfflinePlayer
getLicense
getIdentifier
getSource
getPlayerName
getPlayerNameByIdentifier
getPlayerData
getMetadata
getCharInfo
getNearbyPlayers
setJob
setJobDuty
addMoney
removeMoney
getMoney
isOnline
Player Current Jobs
Functions related to retrieving and managing a player's active job:
getJob
getJobName
getJobType
getJobDuty
getJobData
getJobGrade
getJobGradeLevel
getJobGradeName
getJobGradePay
isBoss
setJob
setJobDuty
These functions return global/shared job data that apply across all players:
getSharedJob
getSharedJobGrade
getJobTable
jobExists
getSharedJobData
getSharedJobRankData
Let me know if you'd like these documented with detailed descriptions or usage examples for each function.
Utility functions for spatial checks, permissions, and entity validation.
getEntityCoords
getDistance
checkDistance
hasPermission
vehicleOwner
Query general data across the server environment.
getAllPlayers
getNearbyPlayers
getJobCount
getJobTypeCount
getAllJobs
getAllGangs
vehicleOwner
getSharedVehicle
getSharedVehicleData
getSharedWeapons
getSharedWeaponData
Manage and retrieve gang affiliation and rank data.
getGang
getGangName
getGangData
getGangGrade
getGangGradeLevel
getGangGradeName
isLeader
These functions return shared gang definitions, grades, and metadata:
getSharedGang
getSharedGangData
getSharedGangRankData
Let me know if you want each function documented individually with description, usage, and return values.
Last updated