VehicleClient

setBoatAnchor

SET_BOAT_ANCHOR0x75DBEC174AEEAD10

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

SignatureJavaScript
setBoatAnchor(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setBoatAnchor(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setBoatAnchor(vehicle, toggle);
Lua
setBoatAnchor(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_BOAT_ANCHOR(Vehicle vehicle, BOOL toggle)
Hash
0x75DBEC174AEEAD10

Open in the interactive natives reference