Get Temp Permission

Parameters

  • Source - Player server ID
  • Permission - Config option name as a string

Usage

exports['resourcename']:HasTempPermission(Source, Permission)

Note: Replace 'resourcename' with the name of xeroshield.

Return Value

Returns a boolean if the bypass is active or not.

Example

-- Check if player has Anti Noclip Basic bypass
local hasPermission = exports['xeroshield']:HasTempPermission(1, "Anti Noclip Basic")

if hasPermission then
    print("Player has permission bypass")
else
    print("Player does not have permission bypass")
end

This checks if a player has a temporary permission bypass active.

Get Temp Permission | Documentation | XeroShield - FiveM AntiCheat