setPedCanSmashGlass
SET_PED_CAN_SMASH_GLASS0x1CCE141467FF42A2The GTA V native SET_PED_CAN_SMASH_GLASS of the PED namespace, as LS:MP client scripts call it: the global function setPedCanSmashGlass, in JavaScript and in Lua.
setPedCanSmashGlass(ped: Ped, p1: boolean, p2: boolean): voidsetPedCanSmashGlass(ped: Ped, p1: boolean, p2: boolean)Usage
JavaScript
setPedCanSmashGlass(ped, p1, p2);Lua
setPedCanSmashGlass(ped, p1, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
p1 | BOOL | boolean | boolean |
p2 | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_CAN_SMASH_GLASS(Ped ped, BOOL p1, BOOL p2)- Hash
0x1CCE141467FF42A2