Hey guys i need help In my identity script, So until the last fiveMM update everything works perfectly. But with the latest update September 2nd, 2017
Another update has been released to the FiveM production channel. This one is dubbed โโ.
Summarized changelog
Allow loading screens to be loaded from http:// instead of files in a resource.
Disable the GTA loading music.
Allow keyboard input during loading.
Add status indicators during resource download.
Fix the โcloseโ button in the โCouldnโt load resource :(โ error.
Minor tweaks to the GTA/RAGE script engine.
My mouse cursor on the UI stopped working. The mouse continues to interact with the background game even though I blocking left, right, up, down. I will leave part of my script where I believe the problem is, can anyone help? Iโm really desperate.
local KeyToucheClose = 177 -- PhoneCancel
local distMaxCheck = 3
local menuIsOpen = 0
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if menuIsOpen ~= 0 then
if IsControlJustPressed(1, KeyToucheClose) and menuIsOpen == 1 then
closeGui()
elseif menuIsOpen == 2 then
local ply = GetPlayerPed(-1)
DisableControlAction(0, 1, true)
DisableControlAction(0, 2, true)
DisableControlAction(0, 24, true)
DisablePlayerFiring(ply, true)
DisableControlAction(0, 142, true)
DisableControlAction(0, 106, true)
DisableControlAction(0,KeyToucheClose,true)
if IsDisabledControlJustReleased(0, 142) then
SendNUIMessage({method = "clickGui"})
end
end
end
end
end)