TXOS - FiveM Scripts Documentation
STOREDISCORD
  • TXOS Documentation
  • DEPENDENCY
    • TXOS Lib
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Framework customization
  • Resources
    • TXOS Armory
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Badge
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Jewel
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Trucking
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Esc
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
Powered by GitBook
On this page
  1. Resources
  2. TXOS Armory

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

This resource doesn't contain any open methods on the server!

PreviousConfigurationNextExports / Events

Last updated 5 months ago