Main/resources/[qb]/qb-smallresources/server/afk.lua

10 lines
288 B
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('KickForAFK', function()
DropPlayer(source, Lang:t("afk.kick_message"))
end)
QBCore.Functions.CreateCallback('qb-afkkick:server:GetPermissions', function(source, cb)
cb(QBCore.Functions.GetPermission(source))
end)