Main/resources/[carscripts]/slashtires/bridge/helptext/ox.lua
2025-06-07 08:51:21 +02:00

19 lines
606 B
Lua

if not lib then
error("ox_lib was not included or did not load before this file! Please make sure to add '@ox_lib/init.lua' before shared/bridge.lua inside the fxmanifest!")
end
---Starts showing the help text
function StartHelpText()
local keyCommand = IsUsingKeyboard(1) and `+slashtire` or `stc`
local keyLabel = GetLocalization('help_text_keyboard', GetKeyMappingKey(keyCommand))
lib.showTextUI(keyLabel, {
position = 'right-center',
icon = 'hand-scissors'
})
end
---Stops showing the help text
function StopHelpText()
lib.hideTextUI()
end