SetupExports
Exports
Allow legitimate actions from your own scripts and log admin actions.
#Temporary allowances
Call these from your own resources before an action that would look like cheating. Time is in milliseconds.
lua
exports['FusionShield']:SetTeleportBypass(5000)
exports['FusionShield']:SetNoclipBypass(30000)
exports['FusionShield']:SetGodmodeBypass(10000)
exports['FusionShield']:SetStaminaBypass(60000)
Freecam stays allowed until you turn it off again:
lua
exports['FusionShield']:SetFreecamBypass(true)
-- ... your camera code ...
exports['FusionShield']:SetFreecamBypass(false)
#Admin action log
Send your own admin actions to the dashboard (Events and Logs):
lua
exports['FusionShield']:LogAdminAction(source, 'Give item', 'bread x5')
Or from another resource with an event:
lua
TriggerEvent('fusionshield:adminAction', source, 'Spawn vehicle', 'adder')
Tip
Common admin chat commands such as /car, /tp, /revive or /giveitem are recorded automatically.