Skip to content

SET_CURSOR_LOCATION working not correct #3554

@Kid-Sander

Description

@Kid-Sander

What happened?

Incorrect behavior of the SET_CURSOR_LOCATION native function. It works regardless of the activity of the game window or console (F8). Example: if you run this native function inside a loop, it will always move the cursor. Even if the game is minimized.

Expected result

When the window is minimized or the console is open, the native code should not run.

Reproduction steps

Citizen.CreateThread(function()
    while true do 
        Wait(0)
        SetCursorLocation(0, 0)
    end
end)

Importancy

Unknown

Area(s)

FiveM, RedM, Natives

Specific version(s)

FiveM / RedM

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    RedMIssues/PRs related to RedMbugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions