local marker = createMarker(0, 0, 0, "checkpoint", 2, 255, 255, 0, 0)--0 0 0 هاذي احداثيات الدائرة
createBlipAttachedTo(marker, 15)
function changeLocation(person)
setElementPosition(person, 1, 1, 1)-- 1 1 1 هاذي مكان الي يروحه بعد ما يدخل الدائرة
end
addEventHandler("onMarkerHit", marker, changeLocation)
addEvent('Vehicle',true)
addEventHandler('Vehicle', root,
function ()
if (getPlayerMoney(source) >= سعر السيارة) then
takePlayerMoney (source,سعر السيارة)
local x, y, z = getElementPosition ( Player )
createVehicle ( هنا رقم السيارة, x, y, z + 10 )
outputChatBox("* #0099ccSuccessfully bought Vehicle #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true)
else
outputChatBox("* you Don't have enough Money !",source,255,0,0,true)
end
end
)