Server Exports
GetStatus
Returns a status controller for the specified player and status.
---@param {source: number}: Player Server ID
---@param {statusName: string}: Status name defined in Config.Statuses
---@return {status: table}: Status controller with Set, GetPercentage, Add and Remove functions
local status = exports['vms_needs']:GetStatus(source, statusName)GetPercentageStatus
Returns the current status value as a percentage (0-100).
---@param {source: number}: Player Server ID
---@param {statusName: string}: Status name defined in Config.Statuses
---@return {statusPercentage: number}: Current status value as a percentage (0-100)
local statusPercentage = exports['vms_needs']:GetPercentageStatus(source, statusName)SetStatus
Sets the raw value of the specified player status.
AddStatus
Adds a raw value to the specified player status.
RemoveStatus
Removes a raw value from the specified player status.
CleanupOptionalStatuses
Clear all statuses if they are marked as isOptional in Config.Statuses.
SaveStatus
Saves the status data for the specified player or all online players.
GetServerTemperature
Returns the current server temperature.
Last updated