Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 766 Bytes

File metadata and controls

32 lines (25 loc) · 766 Bytes
description
How to add a compatibility with your gamemode.

Gamemode Compatibility

{% hint style="info" %} You can modify there functions into the folder advanced_accessories/shared/sh_functions {% endhint %}

function PLAYER:AASGetMoney()
    if DarkRP then -- This is the table of your gamemode 
        return self:getDarkRPVar("money") -- This is the function for get the money
    elseif MyGamemode then
        return self:getMyGamemodeMoney()
    end

    return 0
end

function PLAYER:AASAddMoney(price)
    if DarkRP then
        return self:addMoney(price)
    elseif MyGamemode then -- This is the table of your gamemode 
        return self:setMyGamemodeMoney(price) -- This is the function for get the money
    end
end