popOffVehicleRoofWithImpulse
POP_OFF_VEHICLE_ROOF_WITH_IMPULSE0xE38CB9D7D39FDBCCThe GTA V native POP_OFF_VEHICLE_ROOF_WITH_IMPULSE of the VEHICLE namespace, as LS:MP client scripts call it: the global function popOffVehicleRoofWithImpulse, in JavaScript and in Lua.
popOffVehicleRoofWithImpulse(
vehicle: Vehicle,
x: number,
y: number,
z: number
): voidpopOffVehicleRoofWithImpulse(
vehicle: Vehicle,
x: number,
y: number,
z: number
)Usage
JavaScript
popOffVehicleRoofWithImpulse(vehicle, x, y, z);Lua
popOffVehicleRoofWithImpulse(vehicle, x, y, z)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
popOffVehicleRoofWithImpulse(vehicle, pos);Lua · with vectors
popOffVehicleRoofWithImpulse(vehicle, pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
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.
Pops off the "roof" bone in the direction of the specified offset from the vehicle.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void POP_OFF_VEHICLE_ROOF_WITH_IMPULSE(Vehicle vehicle, float x, float y, float z)- Hash
0xE38CB9D7D39FDBCC- Formerly
_EJECT_JB700_ROOF