VehicleClient

canAnchorBoatHereIgnorePlayers

CAN_ANCHOR_BOAT_HERE_IGNORE_PLAYERS0x24F4121D07579880

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL CAN_ANCHOR_BOAT_HERE_IGNORE_PLAYERS(Vehicle vehicle)
Hash
0x24F4121D07579880
Introduced
Game build 678 legacy numbering
Formerly
_CAN_BOAT_BE_ANCHORED_2 _CAN_ANCHOR_BOAT_HERE_2

Open in the interactive natives reference