SetVehicleActAsIfHighSpeedForFragSmashing
DocsSetVehicleActAsIfHighSpeedForFragSmashing(vehicle, actHighSpeed)Description
This native is used to simulate a high-speed impact for a vehicle when it collides with a breakable object (frag). It's particularly useful in scripted sequences where a vehicle is required to break through a barrier but might not actually be moving at a sufficient speed to do so realistically. Note that this setting is temporary and will reset after one frame, so it needs to be called every frame for a lasting effect.
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to be affected by this setting. |
actHighSpeed | BOOL | A boolean flag. Set to `true` to make the vehicle act as if it's at high speed for the current frame |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.