RedM Natives

IS_PLAYER_SCRIPT_CONTROL_ON

Hash0xB78350754157C00F
Runtime nameIsPlayerScriptControlOn
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8A876A65283DD7D7

Signature

BOOL IS_PLAYER_SCRIPT_CONTROL_ON(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns BOOL

Usage

Lua
local retval = IsPlayerScriptControlOn(player)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB78350754157C00F, player, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerScriptControlOn(player);

// by hash
const retval = Citizen.invokeNative('0xB78350754157C00F', player, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xB78350754157C00F, player);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.