pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 🏛️Banking
      • 👋Installation Guide
      • ⚙️Editable Files
      • Client Exports
      • Server Exports
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  1. Assets & Guides
  2. GCT

EXPORTS

  1. Open GCT

exports['piotreq_gct']:OpenGCT()
  1. Check if player is in org

exports['piotreq_gct']:inOrg() -- true | false
  1. Update gang stats

  • gang string

  • stat string

  • value number (it will add or remove this value)

  • type add | remove

exports['piotreq_gct']:UpdateGangStat(gang, stat, value, type)

exports['piotreq_gct']:UpdateGangStat('PSC', 'started', 1, 'add')
  1. Get gang stats

  • gangName string

local gangStats = exports['piotreq_gct']:GetGangStats(gangName)
  1. Finish mission (if is started)

  • missionName string

exports['piotreq_gct']:FinishMission(missionName)
  1. Get gang online members

  • gangName string

local gangMembers = exports['piotreq_gct']:GetGangOnlineMembers(gangName)
  1. Get gang all members (offline too)

  • gangName string

local gangMembers = exports['piotreq_gct']:GetGangMembers(gangName)
  1. Get gang data from player identifier

  • identifier string

local playerGang = exports['piotreq_gct']:GetGangFromIdentifier(identifier)
  1. Get gang name and grade from id

  • player number

local playerData = exports['piotreq_gct']:GetPlayerGangData(player)
  1. Add exp for gang

  • gangName string

  • exp number

exports['piotreq_gct']:AddExpForGang(gangName, exp)
  1. On buy base

  • data table

RegisterNetEvent('piotreq_gct:onBuyBase', function(data)
    print(json.encode(data))
end)
PreviousGCTNextCivil MDT

Last updated 10 months ago

💻
📨