VehicleClient

isBoatAnchored

IS_BOAT_ANCHORED0xB0AD1238A709B1A2

The GTA V native IS_BOAT_ANCHORED of the VEHICLE namespace, as LS:MP client scripts call it: the global function isBoatAnchored, in JavaScript and in Lua.

SignatureJavaScript
isBoatAnchored(vehicle: Vehicle): boolean
SignatureLua
isBoatAnchored(vehicle: Vehicle): boolean

Usage

JavaScript
const result = isBoatAnchored(vehicle);
Lua
local result = isBoatAnchored(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_BOAT_ANCHORED(Vehicle vehicle)
Hash
0xB0AD1238A709B1A2
Introduced
Game build 573 legacy numbering
Formerly
_IS_BOAT_ANCHORED_AND_FROZEN

Open in the interactive natives reference