سويته لك ع السريع ب الاكاونت داتا
-- # Server Side !
-- # Created By iMr_,Omar
money = 15000
addCommandHandler('gm', function ( plr ) -- gm = give money
if ( not isGuestAccount ( getPlayerAccount ( plr ) ) ) then
if ( getAccountData (getPlayerAccount(plr),'MoneyData') ~= true ) then
givePlayerMoney ( plr , money )
outputChatBox("* You Have : "..money,plr,255,255,255,true)
else
outputChatBox("Can't Use This !",plr,255,255,255,true)
end
else
outputChatBox('Please Login !',plr,255,255,255,true)
end
end
)
addEventHandler('onResourceStop',resourceRoot, function ( )
for k,v in ipairs ( getAccounts() ) do
setAccountData ( v , 'MoneyData' , false )
end
end)