Config
Collection of exports, Designed for easy integration with third-party scripts.
Client Exports
isSeatbeltOn
Check if seatbelt is on.
local isOn = exports['prism-hudv2']:isSeatbeltOn()setSeatbelt
Set seatbelt state.
---@param state boolean
exports['prism-hudv2']:setSeatbelt(state)SetSpeedLimit
Set speed limit.
---@param limit number
exports['prism-hudv2']:SetSpeedLimit(limit)ClearSpeedLimit
Clear speed limit.
exports['prism-hudv2']:ClearSpeedLimit()GetCurrentSpeedLimit
Get current speed limit.
---@return number
local limit = exports['prism-hudv2']:GetCurrentSpeedLimit()IsInSpeedZone
Check if player is in speed zone.
---@return boolean
local isInZone = exports['prism-hudv2']:IsInSpeedZone()IsHudUiHidden
Check if HUD UI is hidden.
---@return boolean
local isHidden = exports['prism-hudv2']:IsHudUiHidden()SetHudHidden
Set HUD UI hidden state.
---@param state boolean
exports['prism-hudv2']:SetHudHidden(state)SetCustomStat
Set a custom stat bar value. The stat must be defined in Config.CustomStats.
---@param statId string -- The custom stat id from config
---@param value number -- The new value (0-100)
exports['prism-hudv2']:SetCustomStat(statId, value)GetCustomStat
Get the current value of a custom stat bar.
---@param statId string -- The custom stat id from config
---@return number
local value = exports['prism-hudv2']:GetCustomStat(statId)UpdatePlayerInfoField
Set a custom player info field value. The field must be defined in Config.CustomInfoFields.
---@param fieldId string -- The custom info field id from config
---@param value string -- The new text value to display
exports['prism-hudv2']:UpdatePlayerInfoField(fieldId, value)GetPlayerInfoField
Get the current value of a custom player info field.
---@param fieldId string -- The custom info field id from config
---@return string
local value = exports['prism-hudv2']:GetPlayerInfoField(fieldId)Last updated on