RedM Natives

SET_BOAT_LOW_LOD_ANCHOR_DISTANCE

Old name: _SET_BOAT_MOVEMENT_RESISTANCE

Hash0xE3261532550D6A9F
Runtime nameSetBoatLowLodAnchorDistance
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE842A9398079BD82

Signature

void SET_BOAT_LOW_LOD_ANCHOR_DISTANCE(Vehicle vehicle, float value);

Parameters

NameTypeDescription
vehicleVehicle—
valuefloat—

Returns void

Description

Value: mostly 99999.9f

Old name: _SET_BOAT_MOVEMENT_RESISTANCE

Usage

Lua
SetBoatLowLodAnchorDistance(vehicle, value)

-- always works, by hash
Citizen.InvokeNative(0xE3261532550D6A9F, vehicle, value)
JavaScript and C#
JavaScript
SetBoatLowLodAnchorDistance(vehicle, value);

// by hash
Citizen.invokeNative('0xE3261532550D6A9F', vehicle, value + 0.0000001);
C#
Function.Call((Hash)0xE3261532550D6A9F, vehicle, value);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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