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>",
}