RedM Natives

DOES_BOAT_SINK_WHEN_WRECKED

Hash0x43F15989
Runtime nameDoesBoatSinkWhenWrecked
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

bool DOES_BOAT_SINK_WHEN_WRECKED(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle

The target vehicle.

Returns bool — Returns whether or not the boat sinks when wrecked.

Usage

Lua
local retval = DoesBoatSinkWhenWrecked(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x43f15989, vehicle, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DoesBoatSinkWhenWrecked(vehicle);

// by hash
const retval = Citizen.invokeNative('0x43f15989', vehicle, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x43f15989, vehicle);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.