CAN_ANCHOR_BOAT_HERE_IGNORE_PLAYERS
// CanAnchorBoatHereIgnorePlayers
BOOL CAN_ANCHOR_BOAT_HERE_IGNORE_PLAYERS(Vehicle boat);
Returns: Returns true
if the boat can be safely anchored at its current position (ignoring players on the boat), false
otherwise.
Checks if a boat can be anchored at its present position, ignoring any players standing on the boat.
NativeDB Introduced: v678
Old name: _CAN_BOAT_BE_ANCHORED_2
Old name: _CAN_ANCHOR_BOAT_HERE_2
Examples:
local boat = GetVehiclePedIsIn(PlayerPedId(), false)
if not boat or not IsThisModelABoat(GetEntityModel(boat)) then return end
if CanAnchorBoatHereIgnorePlayers(boat) then
print("It's safe to anchor the boat here, ignoring players on the boat")
else
print("It's not safe to anchor the boat at this location, even ignoring players")
end