Or edit the existing function in both cores?
-- Making CitizenID to count in numbers
function QBCore.Player.CreateCitizenId()
local CitizenId = 0
local UniqueFound = false
while not UniqueFound do
CitizenId = CitizenId + 1
local result = MySQL.prepare.await('SELECT COUNT(*) as count FROM players WHERE citizenid = ?', { CitizenId }) -- 1, 2, 3, 4
if result == 0 then
UniqueFound = true
end
end
return CitizenId
end
No, not with the citizenid, it pulls the Static ID from the IDs in the character table on the server and reloads it every time you enter the server, automatically, the ID on the server is permanently this, but since it is fivem based, the server ID is processed on the back end.
20€ for 100 lines. Perfect!
Couldnt you just use metadata for that then?
but i wanted to use something that was already there.
It’s not 20€, it’s 8€, are you sure you’re seeing it right?
Must’ve imagined it saying 17€ earlier.
Must’ve both imagined it.
Great work looks good.
Maybe a update feature, add tags / roles / discord name attachment. ((So in-game name is Discord name))