commands.lua
local adminPerm = config.tgiannServer and { "tgi" } or config.framework == "qb" and "god" or "admin"
tgiCore.CommandsAdd(config.adminCommand, "Vehicleshop Dev Menu", {}, false, function(source)
local src = source
local devMenuPlayerId = devMenuFunctions.GetDevMenuPlayerId()
if devMenuPlayerId then
return TriggerClientEvent("tgiann-vehicleshop:notif", src, string.format(lang.devMenuBussy, devMenuPlayerId), "error")
end
devMenuFunctions.SetDevMenuPlayerId(src)
TriggerClientEvent("tgiann-vehicleshop:openDevMenu", source)
end, adminPerm)
Last updated