Server

BanPlayer

It allows you to ban players with the advanced banning system

exports.jc_admin:BanPlayer(targetSource, reason, permanent, expiresAt, adminSource)

Parameters Explained

  • targetSource: Server ID (source) of the player to be banned

  • reason: Reason for the ban. This is shown to the player and saved in the logs

  • permanent: true = permanent ban. false = temporary ban (uses expiresAt)

  • expiresAt: Ban end date in "YYYY-MM-DD" format. Only if permanent is false

  • adminSource: Server ID of the admin who bans

chevron-rightFor examplehashtag

UnBanPlayer

It allows you to un ban players with the advanced banning system

exports.jc_admin:UnbanPlayer(banId, adminSource)

Parameters Explained

  • banId: Ban ID in table jotadev_admin_bans

  • adminSource: Server ID of the admin who unbans

chevron-rightFor examplehashtag

GetPlayerGroupPermissions

Returns the player's admin group and its permissions table

Parameters Explained

  • source: Player server ID

chevron-rightFor examplehashtag

GetPlayerGroup

Know the name of the group

Parameters Explained

  • source: Player server ID

  • permKey: Permit key (eg. "giveitem", "freeze", "noclip", "bring")

chevron-rightFor examplehashtag

IsPlayerAdmin

Returns whether the administrator is admin or not

Parameters Explained

  • source: Player server ID

chevron-rightFor examplehashtag

Last updated