CAN_ANCHOR_BOAT_HERE
0x26C10ECBDA5D043B
0xE97A4F5E
// CanAnchorBoatHere
BOOL CAN_ANCHOR_BOAT_HERE(Vehicle boat);
Returns: Returns true
if the boat can be safely anchored at its current position, false
otherwise.
Checks if a boat can be anchored at its present position without possibly intersecting collision later.
NativeDB Introduced: v323
Old name: _GET_BOAT_ANCHOR
Old name: _CAN_BOAT_BE_ANCHORED
Examples:
local boat = GetVehiclePedIsIn(PlayerPedId(), false)
if not boat or not IsThisModelABoat(GetEntityModel(boat)) then return end
if CanAnchorBoatHere(boat) then
print("It's safe to anchor the boat here")
else
print("It's not safe to anchor the boat at this location")
end