Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 372 Bytes

IsAnchored.md

File metadata and controls

25 lines (15 loc) · 372 Bytes

IsAnchored

Description

Returns if current boat can be anchored, vehicle need to passed.

Parameters

  • vehicle: current vehicle

Examples

    local IsAnchored = exports.fd_anchor:IsAnchored(GetVehiclePedIsIn(PlayerPedId(), true))

    if IsAnchored then
        -- is anchored
        return
    end

    -- isn't anchored
    return false