51 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
Config = {}
 | 
						|
 | 
						|
Config.useESX = false --Set to true if you use es_extended
 | 
						|
Config.useQBCore = true --Set to true if you use QBCore
 | 
						|
 | 
						|
Config.minnumber = 1000000
 | 
						|
Config.maxnumber = 9999999
 | 
						|
 | 
						|
Config.NeedSimCard = true
 | 
						|
 | 
						|
Config.SimCardItem = "simcard"
 | 
						|
 | 
						|
if Config.useESX then
 | 
						|
 | 
						|
    ESX = exports['es_extended']:getSharedObject()
 | 
						|
 | 
						|
    -- Run the code below if ESX nil is displayed in your console and delete the code above--.
 | 
						|
 | 
						|
    -- ESX = nil
 | 
						|
    -- TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
 | 
						|
 | 
						|
    Config.UserTable = "users"
 | 
						|
    Config.IdentifierTable = "identifier"
 | 
						|
 | 
						|
elseif Config.useQBCore then
 | 
						|
 | 
						|
    Config.NewQBVersion = true
 | 
						|
 | 
						|
    if Config.NewQBVersion then
 | 
						|
        QBCore = exports['qb-core']:GetCoreObject()
 | 
						|
    else
 | 
						|
        TriggerEvent("QBCore:GetObject", function(obj)
 | 
						|
            QBCore = obj
 | 
						|
        end)
 | 
						|
    end
 | 
						|
 | 
						|
    Config.UserTable = "players"
 | 
						|
    Config.IdentifierTable = "citizenid"
 | 
						|
 | 
						|
end
 | 
						|
 | 
						|
Config.RemoveItemAfterNumberChange = true
 | 
						|
 | 
						|
Config.Locales = {
 | 
						|
    invalid_amount = "Du musst schon ne Nummer eintippen.",
 | 
						|
    number_exists = "Die Nummer gibt es schon",
 | 
						|
    number_must_between = "Die Nummer muss zwischen ".. Config.minnumber .. " und " .. Config.maxnumber .."sein.",
 | 
						|
    number_consist_numers = "Die Nummer darf nur aus Zahlen bestehen.",
 | 
						|
    number_changed = "Die Nummer wurde erfolgreich geändert.",
 | 
						|
    no_simcard_item = "Ohne Sim Karte wird das nix.",
 | 
						|
}
 |