[PAID] [QBX/QB] SHX - Static ID

Features

  • Static id that does not change within the server.
  • You can add this to your commands, etc.
  • In case of a complaint from a player on your server, etc. you can find it via static id.
  • For QBCore and QBox you need to make some changes.

Compatibility [Framework]

  • QBCore
  • QBOX

Showcase

Store

FiveM Other

Code is accessible No
Subscription-based No
Lines (approximately) 100
Requirements No
Support Yes

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.

Will be on Esx?

soon maybe.

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.

I think :smiley:

Great work looks good.

Maybe a update feature, add tags / roles / discord name attachment. ((So in-game name is Discord name))

Waiting for Esx. :pray:

I’ll try to do it soon.