17 lines
371 B
Lua
17 lines
371 B
Lua
Citizen.CreateThread(function()
|
|
while true do
|
|
Citizen.Wait(0)
|
|
|
|
if IsControlJustPressed(1, 168) then
|
|
if true then
|
|
SetNuiFocus(true, true)
|
|
SendNUIMessage({type = 'openGuideHud'})
|
|
end
|
|
end
|
|
end
|
|
end)
|
|
|
|
RegisterNUICallback('closeGuideHud', function(data, cb)
|
|
SetNuiFocus(false, false)
|
|
end)
|