Player can buy VIP with play money for one day and after that one day VIP is automatically removed
server:
addEvent("addVIP",true) addEventHandler("addVIP",getRootElement(),function(source)
local account = getPlayerAccount(source)
local accName = getAccountName(account)
aclGroupAddObject(aclGetGroup("VIP"),"user."..accName)
end)
Client:
if source == Botao["buy8"] then
if getElementData(localPlayer,"MoneyMT")MTA >= 150000 then
triggerServerEvent("addVIP",getRootElement(),localPlayer)
outputChatBox("You have vip for one day.",255,255,255,true)
else
outputChatBox("You do not have enough money",255,0,0,true)
end
end