SET_PLAYER_CONTROL
Hash
0x4D51E59243281D80Runtime name
SetPlayerControlNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8D32347D6D4C40A2Signature
void SET_PLAYER_CONTROL(Player player, BOOL toggle, int flags, BOOL bPreventHeadingChange);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
toggle | BOOL | — |
flags | int | — |
bPreventHeadingChange | BOOL | — |
Returns void
Description
flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eSetPlayerControlFlags
Usage
SetPlayerControl(player, toggle, flags, bPreventHeadingChange)
-- always works, by hash
Citizen.InvokeNative(0x4D51E59243281D80, player, toggle, flags, bPreventHeadingChange)JavaScript and C#
SetPlayerControl(player, toggle, flags, bPreventHeadingChange);
// by hash
Citizen.invokeNative('0x4D51E59243281D80', player, toggle, flags, bPreventHeadingChange);Function.Call((Hash)0x4D51E59243281D80, player, toggle, flags, bPreventHeadingChange);Enums and flags
- eSetPlayerControlFlags 13 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.