Exports

Server exports are called from server scripts. Client exports are called from client scripts. Both use exports["sbanticheat"]:Name(...).

For the whitelist calls (AddWhitelist, RemoveWhitelist, IsWhitelisted) see Whitelist Exports.

SetMinimapDisabled(serverId, disabled)

Tells SB AntiCheat you have hidden a player's minimap on purpose, for example during a heist. While disabled is true, a visible radar on that player is flagged by the minimap check.

Lua
exports["sbanticheat"]:SetMinimapDisabled(source, true)    -- radar should be off
exports["sbanticheat"]:SetMinimapDisabled(source, false)   -- radar allowed again

AllowObjectModel(model) / RemoveObjectModel(model)

Register props your own scripts spawn, so you don't have to edit models.lua. model can be a name or a hash. Allowed models override both the whitelist and the blacklist for every player until removed or the resource restarts.

Lua
exports["sbanticheat"]:AllowObjectModel("prop_money_bag_01")
exports["sbanticheat"]:AllowObjectModel(`prop_weed_01`)
exports["sbanticheat"]:RemoveObjectModel("prop_money_bag_01")

AllowDetection(category, seconds, playerSrc) → boolean

Gives one player a short bypass for one detection category. Time is in seconds. Only resources listed in shared/trustedresource.lua may use it, unless allowAnyResource is on. See Trusted Resources.

Lua
exports["sbanticheat"]:AllowDetection("teleport", 3, source)
SetEntityCoords(GetPlayerPed(source), x, y, z)

Returns true if the bypass was granted. The server needs the player ID. From client code, use the client version without it.

Client exports

Lua
exports["sbanticheat"]:AllowDetection("invisibility", 5)
SetEntityVisible(PlayerPedId(), false, false)

AllowDetection(category, seconds) works the same way for the local player and returns true or false.

Last updated 2026-11-08