setVehicleDropsMoneyWhenBlownUp
SET_VEHICLE_DROPS_MONEY_WHEN_BLOWN_UP0x068F64F2470F9656The GTA V native SET_VEHICLE_DROPS_MONEY_WHEN_BLOWN_UP of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleDropsMoneyWhenBlownUp, in JavaScript and in Lua.
setVehicleDropsMoneyWhenBlownUp(vehicle: Vehicle, toggle: boolean): voidsetVehicleDropsMoneyWhenBlownUp(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setVehicleDropsMoneyWhenBlownUp(vehicle, toggle);Lua
setVehicleDropsMoneyWhenBlownUp(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
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.
Money pickups are created around cars when they explode. Only works when the vehicle model is a car. A single pickup is between 1 and 18 dollars in size. All car models seem to give the same amount of money.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_DROPS_MONEY_WHEN_BLOWN_UP(Vehicle vehicle, BOOL toggle)- Hash
0x068F64F2470F9656- Formerly
_SET_VEHICLE_CREATES_MONEY_PICKUPS_WHEN_EXPLODED