Society

If you are gonna use society as payment option make sure to add your own society exports in server/editable/_framework.lua (lines 69-78)

AV Business is already pre configured to work with society payments.

-- Return society money based on player job
function getSociety(job)
    dbug("getSociety(job)", job)
    if avBusiness then
        return exports['av_laptop']:getSociety(job) or 0
    end
    return 0
end

-- Remove society money based on player job
function removeSociety(src, job, amount, reason)
    dbug("removeSociety()", src, job, amount, reason)
    if avBusiness then
        local playerName = exports['av_laptop']:getName(src) or ""
        return exports['av_laptop']:removeSociety(src, job, amount, playerName, reason)
    end
end

Last updated