setHealthSnacksCarriedByAllNewPeds
SET_HEALTH_SNACKS_CARRIED_BY_ALL_NEW_PEDS0xFF4803BC019852D9The 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.
setHealthSnacksCarriedByAllNewPeds(p0: number, p1: any): voidsetHealthSnacksCarriedByAllNewPeds(p0: number, p1: any)Usage
JavaScript
setHealthSnacksCarriedByAllNewPeds(p0, p1);Lua
setHealthSnacksCarriedByAllNewPeds(p0, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
p0 | float | number | number |
p1 | Any | any | any |
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