disable controls while in menu

DutchGay101

Member
Joined
Sep 15, 2023
Messages
23
Reaction score
2
is there anyway to disable gta controls ?
i tried using GetAsyncKeyState but wasnt enough tbh
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,713
Solutions
1
Reaction score
111
You could write memory to controls memory address (0xB73458), probably is a better way but there's one if you don't get any answers.
 

danieldelex

New member
Joined
Sep 24, 2024
Messages
4
Reaction score
0
Location
USA
Try using DISABLE_ALL_CONTROL_ACTIONS(0) while your menu is active. This will disable all controls. If you only want to disable specific actions, use DISABLE_CONTROL_ACTION(0, actionID, true) for each action.
 

DutchGay101

Member
Joined
Sep 15, 2023
Messages
23
Reaction score
2
Try using DISABLE_ALL_CONTROL_ACTIONS(0) while your menu is active. This will disable all controls. If you only want to disable specific actions, use DISABLE_CONTROL_ACTION(0, actionID, true) for each action.
I wish that worked but the game has its own hooked wndproc the game is MTA:SA
 
Top