disable controls while in menu

DutchGay101

Member
Joined
Sep 15, 2023
Messages
24
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,721
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
24
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
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Bro took 3 months to finally tell everyone that he needs code for completely different game when everyone is talking about gta sa...

Someone give him gold medal for slowest replies..
 

DutchGay101

Member
Joined
Sep 15, 2023
Messages
24
Reaction score
2
Bro took 3 months to finally tell everyone that he needs code for completely different game when everyone is talking about gta sa...

Someone give him gold medal for slowest replies..
its not a different game its just a launcher for gta:sa that has its own network. nothing different
 
Top