copyVehicleDamages
COPY_VEHICLE_DAMAGES0xE44A982368A4AF23The GTA V native COPY_VEHICLE_DAMAGES of the VEHICLE namespace, as LS:MP client scripts call it: the global function copyVehicleDamages, in JavaScript and in Lua.
copyVehicleDamages(sourceVehicle: Vehicle, targetVehicle: Vehicle): voidcopyVehicleDamages(sourceVehicle: Vehicle, targetVehicle: Vehicle)Usage
JavaScript
copyVehicleDamages(sourceVehicle, targetVehicle);Lua
copyVehicleDamages(sourceVehicle, targetVehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
sourceVehicle | Vehicle | number | integer |
targetVehicle | Vehicle | number | integer |
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.
Copies sourceVehicle's damage (broken bumpers, broken lights, etc.) to targetVehicle.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void COPY_VEHICLE_DAMAGES(Vehicle sourceVehicle, Vehicle targetVehicle)- Hash
0xE44A982368A4AF23