Open methods

We have some open methods on the client of armory, here you can change some things like the marker being drawn, and if you wish to make your own checks before opening the armory menu.

OpenMethods = {}

function OpenMethods.canOpenArmoryMenu() -- Define if the player can open the armory menu
    --[[if exports['ox_inventory']:IsOpen() or exports["lb-phone"]:IsOpen() or exports['qs-inventory']:inInventory() then
        return false
    end]]

    return true
end

function OpenMethods.drawMarker() -- Draw the marker for the armory menu (Only if UseTarget is false)
    local r, g, b, a = table.unpack(Config.Options.Marker.DrawMarkerColor)
    DrawMarker(27, vector3(Config.ArmoryPos[currentArmory].armory.x, Config.ArmoryPos[currentArmory].armory.y, Config.ArmoryPos[currentArmory].armory.z - 0.95), vector3(0.0, 0.0, 0.0), vector3(0.0, 0.0, 0.0), vector3(1.0, 1.0, 1.0), r, g, b, a, false, false, 2, false, false, false)
end

Last updated