RedM Natives

SET_PED_COMBAT_RANGE

CR_NEAR, CR_MEDIUM, CR_FAR, CR_VERY_FAR

Hash0x3C606747B23E497B
Runtime nameSetPedCombatRange
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3C606747B23E497B

Signature

void SET_PED_COMBAT_RANGE(Ped ped, int range);

Parameters

NameTypeDescription
pedPed—
rangeint—

Returns void

Description

range:
enum eCombatRange
{
	CR_NEAR,
	CR_MEDIUM,
	CR_FAR,
	CR_VERY_FAR
};

Usage

Lua
SetPedCombatRange(ped, range)

-- always works, by hash
Citizen.InvokeNative(0x3C606747B23E497B, ped, range)
JavaScript and C#
JavaScript
SetPedCombatRange(ped, range);

// by hash
Citizen.invokeNative('0x3C606747B23E497B', ped, range);
C#
Function.Call((Hash)0x3C606747B23E497B, ped, range);

Enums and flags

Sources

alloc8or RDR3 NativeDB

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