Hello how are you .. hmm .. i have a problem with this wtf script ! whats the wrong -_-"
-- Server Side
i triger it from client side ..
addEvent("Car", true)
addEventHandler("Car", root,
function()
local mapName = getMapName(source)
if mapName ~= "Arena-1" then
local PlayerMoney = getPlayerMoney(source)
if PlayerMoney >= 50000 then
takePlayerMoney(source, 50000)
x, y, z = getElementPosition(source), source, 50000
Vehicle = createVehicle(id, x, y, z)
warpPedIntoVehicle(source, Vehicle)
setVehicleLocked(Vehicle, true)
setTimer(function()
destroyElement(source, Vehicle)
end, 300000, 1, true)
outputChatBox("#FF0000 .."getPlayerName".. (source) Has Bought A Rhino !", root, 255, 255, 0, true)
else
outputChatBox("You Dont Have Money to Buy a Rhino", source, 255, 0, 0, true)
end
else
outputChatBox("Round is not started!", source, 255, 0, 0, true)
end
end
)