local vehicle = {}
addEvent("vcars", true )
addEventHandler("vcars", root,
function()
if not isElement(vehicle[source]) then
local x, y, z = getElementPosition(source)
vehicle[source] = createVehicle(id, x, y, z) -- id استبدل فقط
warpPedIntoVehicle(source, vehicle[source])
outputChatBox("مبروك اخذت سياره", source, 255, 255, 0, true)
else
outputChatBox("لديك سياره", source, 255, 255, 0, true)
end
end)