LG Identification Badge
New Free Release by LG Development!
What does it do?
This script is used for any roleplaying server that needs a good and modern way to display their identification.
It is fully modular, and can be edited to use any framework. This also comes with three default templates, you can add more via the config & HTML file.
Features
- Fully Standalone
- Fully Editable
- No Database Required, Saves locally.
- Function Callbacks already made in config.
- Display ID both visually and physically
- Uses Onesync Positioning (Prevents event exploiting)
- Works with multiple department templates & color schemes.
Usage
- /showid: Shows your identification card.
- /editid: Edits your identification card.
Want to start using this? Great!
https://github.com/DevLanceGood/LG-Identification
Credits
- Animation & Object: [Standalone & ESX] [Release] Flash Badge Script
Examples
-- ESX Job Check.
Config.Functions.CanDisplayIdentity = function() -- Client Check to see if the player can show their identity
local ESX = exports["es_extended"]:getSharedObject()
local PlayerData = ESX.GetPlayerData()
if (PlayerData.job.name ~= "police" and PlayerData.job.name ~= "ambulance") then
return false
else
return true
end
end
-- QBCore Job Check.
Config.Functions.CanDisplayIdentity = function() -- Client Check to see if the player can show their identity
local QBCore = exports['qb-core']:GetCoreObject()
local player = QBCore.Functions.GetPlayerData()
local jobName = player.job.name or QBCore.Functions.GetPlayerData().job.name
if (jobName == "police" or jobName == "ambulance") then
return true
else
return false
end
end