IS_PLAYER_CONTROL_ON
Returns whether the player can control himself.
Hash
0x7964097FCE4C244BRuntime name
IsPlayerControlOnNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x49C32D60007AFA47Signature
BOOL IS_PLAYER_CONTROL_ON(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns BOOL
Description
Returns whether the player can control himself.
Usage
local retval = IsPlayerControlOn(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x7964097FCE4C244B, player, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPlayerControlOn(player);
// by hash
const retval = Citizen.invokeNative('0x7964097FCE4C244B', player, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x7964097FCE4C244B, player);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.