Config
Config = {
SetVipCommand = "setvip", -- Command to set a player as VIP
VipStatusCommand = "vipstatus", -- Command for players to check their VIP status
Locale = "en", -- Default language for the script. Change to 'pt' for Portuguese.
FrameworkResources = { -- Add custom resource names for ESX and QBCore
ESX = "es_extended", -- Default ESX resource name
QBCore = "qb-core" -- Default QBCore resource name
},
Locales = {
['en'] = {
['set_vip'] = "Set VIP status of player ID %s to %s",
['player_not_found'] = "Player not found!",
['invalid_args'] = "Invalid arguments! Use: /setvip <playerID> <1 or 0>",
['usage'] = "Usage: /setvip <playerID> <1 or 0>",
['no_permission'] = "You don't have permission to use this command!",
['vip_granted'] = "You have been granted VIP status!",
['vip_revoked'] = "You have lost your VIP status!",
['not_vip'] = "You aren't VIP!",
['yes_vip'] = "You are VIP!",
},
['pt'] = {
['set_vip'] = "Definir o status VIP do jogador ID %s para %s",
['player_not_found'] = "Jogador não encontrado!",
['invalid_args'] = "Argumentos inválidos! Use: /setvip <playerID> <1 ou 0>",
['usage'] = "Uso: /setvip <playerID> <1 ou 0>",
['no_permission'] = "Você não tem permissão para usar este comando!",
['vip_granted'] = "Você recebeu o status VIP!",
['vip_revoked'] = "Você perdeu seu status VIP!",
['not_vip'] = "Não és VIP!",
['yes_vip'] = "És VIP!",
}
}
}
--[[ example
exports['ic3d_vipsystem']:isVip(function(isVip)
local vip
if isVip then
vip = true
else
vip = false
end
-- Move the logic that depends on vip inside the export
if vip then
print("Is VIP, can access")
else
print("Not a VIP, cannot access")
end
end)
]]
Last updated
Was this helpful?