RedM Natives

SET_PLAYER_TARGETING_MODE

Sets your targeting mode for when you're on foot.

Hash0xD66A941F401E7302
Runtime nameSetPlayerTargetingMode
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB1906895227793F3

Signature

void SET_PLAYER_TARGETING_MODE(int targetMode);

Parameters

NameTypeDescription
targetModeint—

Returns void

Description

Sets your targeting mode for when you're on foot.
enum eTargetingMode
{
	TARGETING_MODE_INVALID = -1,
	TARGETING_MODE_CAUSAL, (Wide)
	TARGETING_MODE_NORMAL,
	TARGETING_MODE_HARD, (Narrow)
	TARGETING_MODE_EXPERT (Free Aim)
};

Usage

Lua
SetPlayerTargetingMode(targetMode)

-- always works, by hash
Citizen.InvokeNative(0xD66A941F401E7302, targetMode)
JavaScript and C#
JavaScript
SetPlayerTargetingMode(targetMode);

// by hash
Citizen.invokeNative('0xD66A941F401E7302', targetMode);
C#
Function.Call((Hash)0xD66A941F401E7302, targetMode);

Sources

alloc8or RDR3 NativeDB

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