JustScripts
  • Welcome to JustScripts Documentation
  • JustCarWash
    • Installation
    • Config Setup
  • JustHud
    • Configuration
    • Features
    • Chat
    • Placeholders
    • Elements
    • Custom Elements
    • Exports
  • JustHud(Old)
    • Installation
    • Config Setup
    • Events
  • JustTrucker
    • Installation
    • Config Setup
  • JustSecurity
    • Installation
  • JustDrugs
    • Installation
  • JustFarmer
    • Installation
  • JustCases
    • Configuration
    • Exports
    • Tebex integration
  • JustBank
    • Configuration
    • Exports
    • Society Accounts
  • JustDataSync
  • JustFishing
  • JustNotify
    • Exports
Powered by GitBook
On this page
  • Default placeholders
  • Custom placeholders
  • Formatting numbers
  1. JustHud

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%)"

PreviousChatNextElements

Last updated 5 months ago