İDCARD
ES-IDCARD is a comprehensive identity card system for FiveM QBCore and ESX servers. It allows players to view, share, and create various types of identification cards including ID cards, driver's lice
Last updated
ES-IDCARD is a comprehensive identity card system for FiveM QBCore and ESX servers. It allows players to view, share, and create various types of identification cards including ID cards, driver's lice
Last updated
ox_lib
loaf_headshot_base64
Download the resource
Place it in your server's resources folder
Ensure dependencies are installed (ox_lib
and loaf_headshot_base64
)
Add the following to your server.cfg:
Add the following items to your server's shared items file:
For QBCore (qb-core/shared/items.lua
):
["id_card"] = {
["name"] = "id_card",
["label"] = "ID Card",
["weight"] = 0,
["type"] = "item",
For ESX, add similar items to your ESX items database or configuration.
You can modify the script settings in shared/cfg.lua
:
Card types and their appearances
Location coordinates for ID card creation
Prices for licenses
Animation settings
And more
For Discord avatar integration, set your Discord bot token in shared/server_config.lua
:
Config = {
PhotoType = "discord", -- or "steam"
NoImage = "https://your-default-image.png",
DiscordBotToken = "YOUR_DISCORD_BOT_TOKEN",
}
Viewing ID Cards: Use your ID card from inventory to display it
Sharing ID Cards: When displaying your card, nearby players will automatically see it
Creating ID Cards: Visit the City Hall location to purchase new ID cards
Creating Fake ID Cards: Visit the fake ID card location to create fake identity cards
The script provides several exports for integration with other resources:
-- Give a player a driver's license
exports["es-idcard"]:GivePlayerDriverLicense(playerId)
-- Give a player a weapon license
exports["es-idcard"]:GivePlayerWeaponLicense(playerId)
-- Check if a player has a driver's license
local hasLicense = exports["es-idcard"]:GetPlayerDriverLicense(playerId)
-- Check if a player has a weapon license
local hasLicense = exports["es-idcard"]:GetPlayerWeaponLicense(playerId)
You can add new card types or modify existing ones in shared/cfg.lua
:
CardTypes = {
my_custom_card = {
Type = "My Custom Card",
FirstColor = "#FF5733",
SecondColor = "#FF5733",
Logo = "custom_logo.png",
CardDescription = "Description of your custom card"
},
}
ensure ox_lib
ensure loaf_headshot_base64
ensure es-idcard