Events / Exports
All events and exports are for client
/hud Menu
Opens the buff that opens with the /hud command
UI Open/Close
Opens the buff that opens with the /hud command
Parameters :
Name | Type | Description |
---|---|---|
open | boolen | turns hud on if true and off if false |
AddStatusHud
Adds extra hud like food, thirst, health
If you trigger this event while hud is added, it will update hud
Parameters :
Name | Type | Description |
---|---|---|
hudName | string | Uniq name |
isBig | boolen | if true, the indicator will be large like the health or armor indicator |
iconName | string | Icon name: tgiann-lumihud/ui/assets |
color | string | Hex or RGB color code |
value | number or int | The value in the hud indicator. In percentage |
data | table | Location and button settings |
Example
UpdateStatusValue
Updates the percentage of a previously added hud
Parameters :
Name | Type | Description |
---|---|---|
hudName | string | Uniq name |
value | number or int | The value in the hud indicator. In percentage of the hud indicator |
Example
RemoveStatusHud
Removes the previously added hud
Parameters :
Name | Type | Description |
---|---|---|
hudName | string | Uniq name |
Example
GetTotalKm
Returns the total tm value of the vehicle
Parameters :
Name | Type | Description |
---|---|---|
plate | string | Vehicle plate name |
Example
Seatbelt
Returns whether the player's seat belt is fastened or not
Example
Last updated