Menan AK47
MENAN AK47DOCS
DiscordStore
Navigation
Menu
Welcome
FAQ
ak47_lib
ak47_target
ak47_ambulancejob
ak47_banking
ak47_business
ak47_carboosting
ak47_cardealer
ak47_clothingshop
ak47_crafting
ak47_crime
ak47_crutch
ak47_deliveryjob
ak47_drugdealerv2
ak47_drugmanagerv3
ak47_drugmissions
ak47_ecommerce
ak47_farming
ak47_fishing
ak47_fraudsystem
ak47_fuelstations
ak47_gangs
ak47_garage
ak47_garbagejob
ak47_hookahloungev2
ak47_housing
ak47_hud
ak47_iclothingv3
ak47_idcardv2
Integration
Commands
ak47_inventory
ak47_jobgarage
ak47_khusbites
ak47_khusland
ak47_leafnlatte
ak47_mafiasupply
ak47_mechanic
ak47_moneywash
ak47_multicharacter
ak47_npcmed
ak47_outfitbag
ak47_playershop
ak47_policejob
ak47_prospecting
ak47_radio
ak47_rentalcar
ak47_safezone
ak47_sitchair
ak47_smokingv2
ak47_supermarket
ak47_switch
ak47_territories
ak47_vehiclekeys
ak47_vipshop
Loaf
DocsMulti FrameworkIntegration

Integration

Export functions available for integration with other resources.

Client

HasLicense

Checks if the local player holds a specific license or license class.

local hasLicense = exports['ak47_idcardv2']:HasLicense(item, class)
Parameter Type Required Description
item string Yes ID card item name
class string No License class (case-sensitive)
  • Returns: boolean

GetLicenseLabel

Retrieves the display label for a specific ID card item.

local label = exports['ak47_idcardv2']:GetLicenseLabel(item)
Parameter Type Required Description
item string Yes ID card item name
  • Returns: string

Server

HasLicense

Checks if a target player holds a specific license or license class.

local hasLicense = exports['ak47_idcardv2']:HasLicense(source, item, class)
Parameter Type Required Description
source number Yes Target player server ID
item string Yes ID card item name
class string No License class (case-sensitive)
  • Returns: boolean

GetLicenseLabel

Retrieves the display label for a specific ID card item.

local label = exports['ak47_idcardv2']:GetLicenseLabel(item)
Parameter Type Required Description
item string Yes ID card item name
  • Returns: string

GiveIdCard

Issues an identification card to a target player with metadata.

exports['ak47_idcardv2']:GiveIdCard(source, data)
Parameter Type Required Description
source number Yes Target player server ID
data table Yes Card configuration table

data table structure:

Key Type Required Description
item string Yes ID card item name
class string No License class
address string Yes Player address
expire number Yes Expiration duration in months

Example:

exports['ak47_idcardv2']:GiveIdCard(source, {
    item = 'driverlicense',
    class = 'C',
    address = '1234, Demo City Name',
    expire = 1,
})
Previous
ak47_idcardv2
Next
Commands
On this page
ClientHasLicenseGetLicenseLabelServerHasLicenseGetLicenseLabelGiveIdCard