RedM Natives

SET_PED_FIRING_PATTERN

Used in various R* MP & SP Scripts

Hash0x9AC577F5A12AD8A9
Runtime nameSetPedFiringPattern
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9AC577F5A12AD8A9

Signature

void SET_PED_FIRING_PATTERN(Ped ped, Hash patternHash);

Parameters

NameTypeDescription
pedPed—
patternHashHash—

Returns void

Description

Used in various R* MP & SP Scripts

Usage

Lua
SetPedFiringPattern(ped, patternHash)

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

// by hash
Citizen.invokeNative('0x9AC577F5A12AD8A9', ped, patternHash);
C#
Function.Call((Hash)0x9AC577F5A12AD8A9, 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`.

Sources

alloc8or RDR3 NativeDB

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