Jump to content

komal

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by komal

  1. if you want try this script with only red marks try this server only vehiclesid = {429, 541, 480 , 411 , 565} function giveRandomCar( hitElement) local r = getMarkerColor(source) local x,y,z = getElementPosition(hitElement) if r == 255 and getElementType(getVehicleController(hitElement)) == "Player" then local veh = createVehicle(vehiclesid[math.random(1,#vehiclesid)],x,y,z,0,0,getElementRotation(hitElement)) if veh then warpPedIntoVehicle(getVehicleController(hitElement),veh) if getElementType(hitElement) == "Vehicle" then destroyElement (hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement() ,giveRandomCar) and this with all marks colors vehiclesid = {429, 541, 480 , 411 , 565} function giveRandomCar( hitElement) local x,y,z = getElementPosition(hitElement) if getElementType(getVehicleController(hitElement)) == "Player" then local veh = createVehicle(vehiclesid[math.random(1,#vehiclesid)],x,y,z,0,0,getElementRotation(hitElement)) if veh then warpPedIntoVehicle(getVehicleController(hitElement),veh) if getElementType(hitElement) == "Vehicle" then destroyElement (hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement() ,giveRandomCar)
  2. try to close chrome browser
×
×
  • Create New...