forked from Simnation/Main
20 lines
606 B
Lua
20 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
|