Unique/Static ID | Standalone

Script for creating unique and static player IDs with license binding and access to player information via static ID.

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

Created by: Pyrobyte Team

The script will allow you to manage access to the server via a static ID.

YouTube
10 + VAT $ Tebex
Discord and Support

You will be able to:

  • Using the /allowid command, grant or remove access to the server, or configure the config so that access is immediate.
  • Using the /checkid command, you can get information about the player: Dynamic ID, Static ID, Identifiers.

Using built-in functions, for your scripts you can:

  • Get a static ID by a dynamic ID
  • Get a dynamic ID by a static ID
  • Get player identifiers by a static ID

Convenient localization configuration, if you have not found your language, you can add it.

Config.lua

Config = {}

Config.Debug = false

Config.Locale = "en"
Config.DefaultStatus = 0 -- 0 - inactive, 1 - allow

Config.LicenseType = "steam" -- recomend
Config.LicenseTypeCheckAdmin = "license"

Config.Contact = "https://discord.gg/"

Function
Before using the functions, don’t forget to add the side you want to use. In fxmanifest.lua '@user_id/init.lua',

pb.getUniqueId(dynamicId)
pb.getDynamicId(uniaueId)
pb.getLicenseByUniqueId(uniqueId)

Locale EN

Locales["en"] = {
    -- // DEBUG
    debug_id_update = "^2[SUCCESS] DEBUG: Player exists - updating data^0",
    debug_id_create = "^2[SUCCESS] DEBUG: New player - creating record^0",
    -- //

    cmd_db_success = "^2[SUCCESS] unique_id table created or already exists^0",
    cmd_db_error = "^1[ERROR] Failed to create unique_id table^0",
    cmd_allowid_success_db = "^2[SUCCESS] allowid: ID successfully updated in database: ^0",
    cmd_allowid_error_db = "^1[ERROR] allowid: Failed to update ID in database: ^0",
    
    -- // USER_ID
    loading_check_id = "🔍 Checking your ID...\n⏳ Loading%s",
    
    id_create = "✅ Your user_id has been created: %s. Contact an administrator to gain access to the server",
    id_not_active = "🔒 Your user_id: %s. Contact an administrator to gain access to the server. Contact us: %s",

    -- // COMMAND
    checkid_static = "Static ID: ",
    checkid_dynamic = "Dynamic ID: ",
    checkid_identificators = "Identifiers:",
    checkid_ident_line = "  %s: %s",
    checkid_ident_not_found = "Not found",
    checkid_not_found = "No identifiers found",
    checkid_error = "🔍 Failed to retrieve player ID",

    allowid_success = "ID successfully allowed: ",
    allowid_deactivate = "ID successfully deactivated: ",
    allowid_error_db = "Failed to allow ID: ",
    allowid_error_args = "Invalid arguments. Usage: /allowid <id> <true/false>",
}

Im confused, 20 dollars to match someones license with a different string?

1 Like

Everyone evaluates their own work. Sorry if I couldn’t satisfy you.

UPD: Perhaps I did not evaluate myself correctly, but there are still life reasons that influenced my decision.

Is this not 20 dollars for something that is basically CitizenID? I’d like you to tell me the difference between the two, if there even is any.

1 Like

Citizen ID is a character ID generated inside the framework.

CitezenID

  • Changes when changing a character.

Unique ID

  • Does not change when changing a character.
  • Does not change when re-entering.

In addition to the white sheet function, you can interact with the player by unique ID, without worrying that he is currently playing for another character. Also, in this way, a clear binding number = player (not the player’s character) is obtained.

So it’s basically a function, of which you’ll find in VRP or a bunch of other frameworks… For 20 bucks.

Well, VRP is a very old framework, and others don’t have anything like it (ESX, QB, QBx)

In ESX and in QB, there is no permanent identifier that would be saved and with its help it would be possible to interact with the player as a whole.

Im not saying you ‘didnt satisfy me’ your post just doesn’t explain what you’re selling at all. I could probably make this in 20 lines of code…

Every user has a r* license, is this not what they use to identify players?

If it were a simple license comparison, it might have been 20 lines long.

This is a specific script, a feature that is available in VRP, but not in other frameworks.

Yes, but someone may need a permanent identifier separate from the license. I also know of cases (I was a witness) where people’s licenses changed due to reinstalling Windows, which is why they had to manually change the license in the DB

Selling something that could you achieve within 20-30 lines of code for 20 bucks is completely crazy, i understand you want to get paid for your work, but this is a non sense

3 Likes

It’s immediately obvious that you didn’t read the post. I CHANGED the price.

I don’t understand where the guesswork in the form of 20 lines of code comes from. 371 lines written manually, but there will probably be more since I want to add a couple more features. This script solves a very specific request that even 200 lines of code will not solve as needed. I have many plans for it, for example, opening the player’s inventory by Unique ID even if the player is offline.

I’m sad that everyone considers it their duty to write about 20 lines. Without even reading the main modified post. I agree that 20 dollars was an inflated price, I changed it because I realized that I was wrong. Sorry that I couldn’t write a script of 2 thousand lines that does everything :)))))

you dont need to sell every script you make. Your target audience doesnt make much sense to me, it seems like youd actually have to have some programming knowledge to implement this (most people dont). but again, i could write this in 20 lines so im not sure why its ‘300 lines long’ unless youre failing to explain what youre selling (i think this might be the case im still confused)

People who worked with vrp, or are looking for a unique id. They already know what it is.

This is a very specific thing, and I will not describe how it works from point to point.

If you can write it in 20 lines, okay.