RedM Natives

SET_LOCKON_TO_FRIENDLY_PLAYERS

Hash0x4A056257802DD3E5
Runtime nameSetLockonToFriendlyPlayers
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_LOCKON_TO_FRIENDLY_PLAYERS(Player player, BOOL toggle);

Parameters

NameTypeDescription
playerPlayer—
toggleBOOL—

Returns void

Usage

Lua
SetLockonToFriendlyPlayers(player, toggle)

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

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

Sources

alloc8or RDR3 NativeDB

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