From 42152a844e5731e7d00d0fd50f112ee582e5a819 Mon Sep 17 00:00:00 2001 From: Michachatz <121869403+Michatec@users.noreply.github.com> Date: Sun, 2 Nov 2025 00:31:19 +0100 Subject: [PATCH] Update cursor.lua --- client/cursor.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cursor.lua b/client/cursor.lua index 7f86cd8..36d84eb 100644 --- a/client/cursor.lua +++ b/client/cursor.lua @@ -1,7 +1,7 @@ local scale = 1.5 local screenWidth = math.floor(1920 / scale) local screenHeight = math.floor(1080 / scale) -shouldDraw = false +local shouldDraw = false function SetInteractScreen(bool) if (not shouldDraw and bool) then @@ -19,7 +19,7 @@ function SetInteractScreen(bool) local minY, maxY = ((h - (h / 2)) / 2), (h - (h / 4)) local totalY = minY - maxY - RequestTextureDictionary('fib_pc') + lib.requestStreamedTextureDict('fib_pc') -- Update controls while active while shouldDraw do @@ -27,7 +27,7 @@ function SetInteractScreen(bool) nY = GetControlNormal(0, 240) * screenHeight DisableControlAction(0, 1, true) -- Disable looking horizontally DisableControlAction(0, 2, true) -- Disable looking vertically - DisablePlayerFiring(PlayerPedId(), true) -- Disable weapon firing + DisablePlayerFiring(cache.ped, true) -- Disable weapon firing DisableControlAction(0, 142, true) -- Disable aiming DisableControlAction(0, 106, true) -- Disable in-game mouse controls -- Update mouse position when changed