PedClient

setHealthSnacksCarriedByAllNewPeds

SET_HEALTH_SNACKS_CARRIED_BY_ALL_NEW_PEDS0xFF4803BC019852D9

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

SignatureJavaScript
setHealthSnacksCarriedByAllNewPeds(p0: number, p1: any): void
SignatureLua
setHealthSnacksCarriedByAllNewPeds(p0: number, p1: any)

Usage

JavaScript
setHealthSnacksCarriedByAllNewPeds(p0, p1);
Lua
setHealthSnacksCarriedByAllNewPeds(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0floatnumbernumber
p1Anyanyany

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.

Related to Peds dropping pickup_health_snack; p0 is a value between [0.0, 1.0] that corresponds to drop rate

Reference

Namespace
Ped PED
In the game
void SET_HEALTH_SNACKS_CARRIED_BY_ALL_NEW_PEDS(float p0, Any p1)
Hash
0xFF4803BC019852D9

Open in the interactive natives reference