RedM Natives

SET_PLAYER_LOCKON

Hash0x462AA1973CBBA75E
Runtime nameSetPlayerLockon
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5C8B2F450EE4328E

Signature

void SET_PLAYER_LOCKON(Player player, BOOL toggle);

Parameters

NameTypeDescription
playerPlayer—
toggleBOOL—

Returns void

Usage

Lua
SetPlayerLockon(player, toggle)

-- always works, by hash
Citizen.InvokeNative(0x462AA1973CBBA75E, player, toggle)
JavaScript and C#
JavaScript
SetPlayerLockon(player, toggle);

// by hash
Citizen.invokeNative('0x462AA1973CBBA75E', player, toggle);
C#
Function.Call((Hash)0x462AA1973CBBA75E, player, toggle);

Sources

alloc8or RDR3 NativeDB

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