SET_BOAT_REMAINS_ANCHORED_WHILE_PLAYER_IS_DRIVER
0xE3EBAAE484798530
0x0ED84792
// SetBoatRemainsAnchoredWhilePlayerIsDriver
void SET_BOAT_REMAINS_ANCHORED_WHILE_PLAYER_IS_DRIVER(Vehicle boat, BOOL toggle);
Sets whether a boat should remain anchored even when a player is driving it.
Note: This native is always used with SET_BOAT_ANCHOR.
NativeDB Introduced: v323
Old name: _SET_BOAT_FROZEN_WHEN_ANCHORED
Examples:
local boat = GetVehiclePedIsIn(PlayerPedId(), false)
if not boat or not IsThisModelABoat(GetEntityModel(boat)) then return end
SetBoatRemainsAnchoredWhilePlayerIsDriver(boat, true)
SetBoatAnchor(boat, true)