Skip to main content

Funkciók

Exportok

- Szerver oldal

getPlayerPunishment(player, name)

ArgumentumTípus
playerxPlayer / serverId
namestring (comserv, jail)
ReturnObject

Példa

local comserv = exports.fl_punishment:getPlayerPunishment(source, "comserv")

banPlayer(admin, target, days, reason)

ArgumentumTípus
adminxPlayer / serverId
targetxPlayer / serverId
daysnumber (0 - Infinity)
reasonstring
Returnboolean

Példa

RegisterCommand("ban2", function(player, args)
local comserv = exports.fl_punishment:banPlayer(player, args[1], 0, "AdminPanel")
end)