WeaponClient

setPedChanceOfFiringBlanks

SET_PED_CHANCE_OF_FIRING_BLANKS0x8378627201D5497D

The GTA V native SET_PED_CHANCE_OF_FIRING_BLANKS of the WEAPON namespace, as LS:MP client scripts call it: the global function setPedChanceOfFiringBlanks, in JavaScript and in Lua.

SignatureJavaScript
setPedChanceOfFiringBlanks(ped: Ped, xBias: number, yBias: number): void
SignatureLua
setPedChanceOfFiringBlanks(ped: Ped, xBias: number, yBias: number)

Usage

JavaScript
setPedChanceOfFiringBlanks(ped, xBias, yBias);
Lua
setPedChanceOfFiringBlanks(ped, xBias, yBias)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
xBiasfloatnumbernumber
yBiasfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Weapon WEAPON
In the game
void SET_PED_CHANCE_OF_FIRING_BLANKS(Ped ped, float xBias, float yBias)
Hash
0x8378627201D5497D

Open in the interactive natives reference