Unique/Static ID | Standalone

A script by PtaxaDev

No reviews yet.
Unique/Static ID | Standalone main image

Full Description

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
5 + 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 = "ru"
Config.DefaultStatus = 0 -- 0 - inactive, 1 - allow

Config.LicenseType = "steam" -- dependency: server.cfg -> set steam_webApiKey "..."
Config.LicenseTypeCheckAdmin = "license"

Config.CheckDuplicateLicense = true

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

Config.WebhookURL = "..."

Exports

local dynamicId = exports['unique_id']:getDynamicId(id)
local uniqueId = exports['unique_id']:getUniqueId(dynamicId)
local license = exports['unique_id']: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>",
}

Config Merger
Have you tried Config Merger? Merge your configs easily