06Documentation
Exports for your scripts
Tell the anticheat when your scripts teleport, heal or give godmode.
#Why
If one of your scripts teleports, heals or spawns lots of cars, BlackShield may see it as suspicious. These exports give the player a grace window.
server.lua
exports.blackshield:AllowTeleport(src, 5000) -- server-side teleports
exports.blackshield:AllowHeal(src, 5000) -- heals / revive
exports.blackshield:AllowGodmode(src, 10000) -- safe zones, cutscenes
exports.blackshield:AllowSpectate(src, 60000)
exports.blackshield:AllowVehicleSpawn(src, 1) -- garages that spawn many cars
exports.blackshield:AllowRepair(src, 10000) -- mechanics#Staff tools
Admin menus that give staff godmode, noclip or invisibility:
lua
exports.blackshield:SetStaffTool(src, 'god', true) -- 'god' | 'noclip' | 'invisible' | 'vehgod' | 'superjump' | 'vehboost'#Others
lua
exports.blackshield:AddPoints(src, 'reason', 25) -- add suspicion
exports.blackshield:BanPlayer(src, 'reason', 0) -- 0 = permanent
local trust = exports.blackshield:GetTrustScore(src) -- 0 to 100Note
If you changed the resource name, replace exports.blackshield with exports['<name>'], or use exports[GetConvar('sv_libres', 'blackshield')], which works with any name.
Tip
DRS scripts (Admin, Advanced Ambulance) already notify BlackShield on their own.
Need help?
New ticket
Something unclear? Open a ticket.