xT Docs
  • 📘Welcome
  • 🆓Free Resources
    • ⛓ïļPrison
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸšķWalking Styles
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🔧Repairs
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⏱ïļDuty Menu
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸ…ŋïļMeter Robbery
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸ‘ŪPD Extras
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 📃Forgery
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⌛Cooldowns
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🎄Christmas
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
  • 🛒Paid Resources
    • ðŸ•īïļBlackmarkets
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⚒ïļCrafting
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸ–ĨïļCryptomining
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸŠĶGravedigging
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸķPets
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⛓ïļPrison Jobs
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸ‘ŋSlasher Minigame
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸ’ĻSlash Tires
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ðŸ“ĶStorage
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🧟Zombies
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
  • 🐎RedM Links
    • 🔎Natives, Discoveries, Etc
    • 🗚ïļMaps
    • ⚒ïļDeveloper Tools
    • 🧍Ped Models
    • 📍Blips
Powered by GitBook
On this page
  1. Free Resources
  2. Duty Menu

Installation & Usage

-- Check Duty State --
local duty = LocalPlayer.state.onDuty     -- Client
local duty = Player(source).state.onDuty  -- Server

-- Toggle Duty --
exports['xt-duty']:toggleDuty()           -- Client Only

-- Set Duty State --
exports['xt-duty']:setDuty(state)         -- Client Only

-- States
[0 & false] = Off Duty
[1 & true] = On Duty
PreviousDependenciesNextMeter Robbery

Last updated 9 months ago

🆓
⏱ïļ
🔌