VehicleClient

canAnchorBoatHere

CAN_ANCHOR_BOAT_HERE0x26C10ECBDA5D043B

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL CAN_ANCHOR_BOAT_HERE(Vehicle vehicle)
Hash
0x26C10ECBDA5D043B
Formerly
_GET_BOAT_ANCHOR _CAN_BOAT_BE_ANCHORED

Open in the interactive natives reference