PedClient

setPedShootRate

SET_PED_SHOOT_RATE0x614DA022990752DC

The GTA V native SET_PED_SHOOT_RATE of the PED namespace, as LS:MP client scripts call it: the global function setPedShootRate, in JavaScript and in Lua.

SignatureJavaScript
setPedShootRate(ped: Ped, shootRate: number): void
SignatureLua
setPedShootRate(ped: Ped, shootRate: integer)

Usage

JavaScript
setPedShootRate(ped, shootRate);
Lua
setPedShootRate(ped, shootRate)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
shootRateintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

shootRate 0-1000

Reference

Namespace
Ped PED
In the game
void SET_PED_SHOOT_RATE(Ped ped, int shootRate)
Hash
0x614DA022990752DC

Open in the interactive natives reference