AWS DEVELOPMENT / DOCUMENTATION

Your server. Our expertise.

Everything you need to install, configure and build.

94 guides • 11 resources • Always here to help
Documentation/custom.lua
About resource versions

These guides include the original resource names. Use the folder and SQL names supplied with your downloaded version. A renamed AWS package may differ from the original EXIT release.

custom.lua

if Config.Framework ~= 'custom' then return end

-- CUSTOM FRAMEWORK SERVER TEMPLATE
Bridge = {}

function Bridge.CreateCallback(name, cb)
    -- Handle server callback registration
end

function Bridge.GetPoliceCount()
    return 0
end

function Bridge.HasItem(source, item)
    return false
end

function Bridge.RemoveItem(source, item, amount)
    return false
end

function Bridge.AddMoney(source, type, amount, reason)
    return false
end

function Bridge.AddItem(source, item, amount)
    return false
end

function Bridge.CreateUseableItem(item, cb)
    -- Register usable item
end

function Bridge.AlertPolice(coords)
    -- Notify all police officers
end