blipq = {}
function vehLocation(player,com)
if isPedInVehicle ( player ) then
daveh = getPedOccupiedVehicle(player)
blipq[getPlayerName(player)] = createBlipAttachedTo(daveh,46,1,0,0,0,255,0,99999.0,player)
setElementData(daveh,"parked",true)
end
end
addCommandHandler("سيارتي",vehLocation)
function mohamed(veh)
if getElementData(veh,"parked") == true then
setElementData(veh,"parked",false)
destroyElement(blipq[getPlayerName(source)])
end
end
addEventHandler("onPlayerVehicleEnter",getRootElement(),mohamed)
شباب الكود اهو عاوز احفظو بحيث الداتا ما تروح