⁉️Setup Server
How to setup server for GPT
SSN / Citizen ID System [FOR ESX]
If you already use system like this just skip this part
Go to your es_extended / server / main.lua and find variable "loadPlayer"
if you find that, add in this
idlike on screenshot below.

Next scroll to function LoadESXPlayer and add
ssn = nilin userData tableNext add
userData.ssn = tonumber(result.id)belowresult

Next scroll to
local xPlayer = CreateExtendedPlayerand adduserData.ssnin argumentsNext add
Core.playersBySsn[userData.ssn] = xPlayerlike on screenshot

Next scroll to
playerDroppedevent handler and addCore.playersBySsn[xPlayer.ssn] = nilalso do it inesx:playerLogout

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

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

Next go to server / classes / player.lua and add
ssnargument in functionCreateExtendedPlayerNext add
self.ssn = ssnand add statebagstateBag:set("ssn", self.ssn, true)

Thats all, at the end make sure ur column
idin users are auto increment
VIN System
You can skip this part if you already use one.
Go to your vehicle shop server side file and find MySQL execute to database like on screenshot.

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

And thats all, if you want to add vin for givecar script, its very similiar.
exports['piotreq_gpt']:GenerateVIN() -- only server sideLast updated