03.11.2010, 08:07
There is no native function for that. However, you can make one yourself.
Simply hook the function TogglePlayerControllable, and depending on the result, set a variable for the player. Then you can make a custom function "GetPlayerToggleControllable" to return that variable.
This thread would help you with hooking the function: https://sampforum.blast.hk/showthread.php?tid=187195
EDIT:
@Hayden: He's trying to get the toggle, not set it.
Simply hook the function TogglePlayerControllable, and depending on the result, set a variable for the player. Then you can make a custom function "GetPlayerToggleControllable" to return that variable.
This thread would help you with hooking the function: https://sampforum.blast.hk/showthread.php?tid=187195
EDIT:
@Hayden: He's trying to get the toggle, not set it.