SetBoatLowLodAnchorDistance
DocsSetBoatLowLodAnchorDistance(boat, value)Description
Introduced in build 323
Sets the distance from the player at which anchored boats switch between high and low LOD (Level of Detail) buoyancy mode.
Parameters
| Name | Type | Description |
|---|---|---|
boat | Vehicle | The target boat. |
value | float | The distance at which the LOD switch occurs. Set to `-1.0` to reset the LOD distance to the default value. |
Quick Snippet: Get Vehicleboat
boatUse 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.
Examples
Official
local boat = GetVehiclePedIsIn(PlayerPedId(), false)
if not boat or not IsThisModelABoat(GetEntityModel(boat)) then return end
-- Set the low LOD anchor distance to 100 units
SetBoatLowLodAnchorDistance(boat, 100.0)
print("Set low LOD anchor distance to 100 units")