RedM Natives

_SET_PED_FIRING_PATTERN_2

Used in R* MP Script fm_mission_controller and various R* SP Scripts for ambush*

Hash0x20E54854DEF6A54A
Runtime nameSetPedFiringPattern_2
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_FIRING_PATTERN_2(Ped ped, Hash patternHash);

Parameters

NameTypeDescription
pedPed—
patternHashHash—

Returns void

Description

Used in R* MP Script fm_mission_controller and various R* SP Scripts for ambush*

Usage

Lua
SetPedFiringPattern_2(ped, patternHash)

-- always works, by hash
Citizen.InvokeNative(0x20E54854DEF6A54A, ped, patternHash)
JavaScript and C#
JavaScript
SetPedFiringPattern_2(ped, patternHash);

// by hash
Citizen.invokeNative('0x20E54854DEF6A54A', ped, patternHash);
C#
Function.Call((Hash)0x20E54854DEF6A54A, ped, patternHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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