Change Ratios
If you need to adjust the ratios for different ATM models due to changes in camera angles or other reasons, follow these steps
Citizen.CreateThread(function() while true do Citizen.Wait(0) local cursorX, cursorY = GetNuiCursorPosition() local resX, resY = GetActualScreenResolution() local ratioX = cursorX / resX local ratioY = cursorY / resY exports['qb-core']:DrawText(('%s - %s'):format(ratioX, ratioY), 0.5) if IsControlPressed(0, 38) then -- E key print(ratioX, ratioY) Wait(300) end end end)
Last updated