Placeholders
The texts and values of all elements are customizable using placeholder, you can use them instead of updating values.
Default placeholders
%id% - Player server ID %name% - Player full name %health% - Player health percentage %armor% - Player armor percentage %hunger% - Player hunger percentage %thirst% - Player thirst percentage %stress% - Player stress percentage %stamina% - Player stamina percentage %cash% - Player wallet %bank% - Player bank %job_label% - Player current job label %job_grade% - Player current job grade %time% - current time (game time if it is enabled in config) %date% - current date
Custom placeholders
for creating custom placeholders (custom data) you need to edit GetExtraEdit() method in handlers.lua
-- You should return table like this with how many keys you want
-- In example below, %TestData% can be used as a placeholder for "Test" static value
function GetExtraData()
return {
TestData = "Test"
}
end
Formatting numbers
You can format numbers for better display in HUD
-- in example below, if player cash is 111111 the output would be: 111,111
local placeholder = "format(%cash%)"
Last updated