Configuration
Learn how to configure Legends Plate Changer for your server's specific needs.
Basic Configuration
The main configuration is located in /config/config.lua. Here is a breakdown of each setting:
Framework, interaction type and inventory system
Config.Framework = 'auto'
Config.InteractionType = 'auto'
Config.Inventory = 'auto'Supported frameworks are qb, esx and qbx you can use auto for automatically detecting it
Supported Interaction Types are ox_target, ox_lib and qb-target you can use auto for automatically detecting it
Supported inventory systems are qb-inventory, ox_inventory and esx_inventory you can use auto for automatically detecting it
Job Configuration
Config.RequireJob = false -- Set this to true for requireing a job to change plates / false for everyone to be able to change plates with the items
Config.Job = "dmv" -- If Config.RequireJob is set to true this will be the whitelisted jobYou can use the resource with whitelisted job preventing normal players from interacting with the NPC for purchasing the licenseplate item and also preventing them from using it.
Build-in NPC selling the item
Config.EnableNPC = true -- Set to false to disable the NPC
Config.NPCPrice = 5000 -- Price for buying a license plate from NPC
Config.NPCCoords = vector4(1188.85, 2640.11, 38.4, 84.99) -- x, y, z, heading for NPC location
Config.NPCModel = "s_m_y_cop_01" -- NPC model
Config.NPCBlip = {
enabled = true,
sprite = 430,
color = 3,
scale = 0.8,
name = "License Plate Shop"
}Here you can change whether to enable or disable the NPC selling the item set in Config.Item, their model, location and the cost of the license plate ite as well as toggling a blip on the map and its settings.
Need Help?
Join our Discord for support: discord.gg/lgnds (opens in a new tab)