FoxGaming
Exalted Member
This script is very basic, it checks on login how close you are to the gold cap, if you're over 200k gold the script will convert the players gold in to 4x50k gold bars.
This is not very unique, however it sure does beat doing a core mod and recompiling.
SQL for GoldBar
This is not very unique, however it sure does beat doing a core mod and recompiling.
Code:
--Gold to Gold Bars--
--Written by FoxGaming--
--www.emudevs.com--
local GoldBar = 70000
local function Check_Money_Login(event, player)
local gold = player:GetCoinage()
if (gold > 2000000000) then
player:SetCoinage(gold-2000000000)
player:AddItem(GoldBar, 4)
player:SendNotification("You were nearing the gold cap, we turned your gold into gold bars.")
end
end
RegisterPlayerEvent(3, Check_Money_Login)
SQL for GoldBar
Last edited: