DOES_BOAT_SINK_WHEN_WRECKED
Signature
bool DOES_BOAT_SINK_WHEN_WRECKED(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The target vehicle. |
Returns bool — Returns whether or not the boat sinks when wrecked.
Usage
local retval = DoesBoatSinkWhenWrecked(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x43f15989, vehicle, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesBoatSinkWhenWrecked(vehicle);
// by hash
const retval = Citizen.invokeNative('0x43f15989', vehicle, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x43f15989, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.