> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-anticheat/exports.md).

# 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](/sb-scripts/sb-anticheat/whitelistexports.md).

### `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](/sb-scripts/sb-anticheat/trusted-resources.md).

```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`.
