SET_PLAYER_TARGETING_MODE
Sets your targeting mode for when you're on foot.
Hash
0xD66A941F401E7302Runtime name
SetPlayerTargetingModeNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB1906895227793F3Signature
void SET_PLAYER_TARGETING_MODE(int targetMode);Parameters
| Name | Type | Description |
|---|---|---|
targetMode | int | — |
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
SetPlayerTargetingMode(targetMode)
-- always works, by hash
Citizen.InvokeNative(0xD66A941F401E7302, targetMode)JavaScript and C#
SetPlayerTargetingMode(targetMode);
// by hash
Citizen.invokeNative('0xD66A941F401E7302', targetMode);Function.Call((Hash)0xD66A941F401E7302, targetMode);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.