VehicleClient

setVehicleDropsMoneyWhenBlownUp

SET_VEHICLE_DROPS_MONEY_WHEN_BLOWN_UP0x068F64F2470F9656

The 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.

SignatureJavaScript
setVehicleDropsMoneyWhenBlownUp(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setVehicleDropsMoneyWhenBlownUp(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setVehicleDropsMoneyWhenBlownUp(vehicle, toggle);
Lua
setVehicleDropsMoneyWhenBlownUp(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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.

https://youtu.be/3arlUxzHl5Y

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

Open in the interactive natives reference