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
  • SSN / Citizen ID System [FOR ESX]
  • VIN System
  1. Assets & Guides
  2. Police MDT

Setup Server

How to setup server for GPT

PreviousPolice MDTNextConfig File

Last updated 4 months ago

SSN / Citizen ID System [FOR ESX]

If you already use system like this just skip this part

  1. Go to your es_extended / server / main.lua and find variable "loadPlayer"

  2. if you find that, add in this id like on screenshot below.

  1. Next scroll to function LoadESXPlayer and add ssn = nil in userData table

  2. Next add userData.ssn = tonumber(result.id below result

  1. Next scroll to local xPlayer = CreateExtendedPlayer and add userData.ssn in arguments

  2. Next add Core.playersBySsn[userData.ssn] = xPlayer like on screenshot

  1. Next scroll to playerDropped event handler and add Core.playersBySsn[xPlayer.ssn] = nil also do it in esx:playerLogout

  1. Next go to server / common.lua and add Core.playersBySsn = {}

  1. Next go to server / functions.lua and add new function like on screenshot

  1. Next go to server / classes / player.lua and add ssn argument in function CreateExtendedPlayer

  2. Next add self.ssn = ssn and add statebag stateBag:set("ssn", self.ssn, true)

  1. Thats all, at the end make sure ur column id in users are auto increment


VIN System

You can skip this part if you already use one.

  1. Go to your vehicle shop server side file and find MySQL execute to database like on screenshot.

  1. Next add vin in columns and values like on screenshot below.

  1. And thats all, if you want to add vin for givecar script, its very similiar.

exports['piotreq_gpt']:GenerateVIN() -- only server side
💻
⁉️
Example
Example
Example
Example
Example
Example
Example
Example
Example