Jump to content

Help


Recommended Posts

I try to make a car shop with the spawn points and i want the car was froze when spawn and if the player was sit in the one panel was pop up and tell the price about the car and if he buy it then the car was defrozed please help

 x, y, z = -424.4,586.15,17.35 
  
function SpawnDayZPatriot() 
  
      veh = createVehicle(470, x +5, y, z) 
      vehCol = createColSphere(x +5, y, z, 2.5) 
      attachElements(vehCol, veh, 0, 0, 0) 
      setElementData(vehCol, "parent", veh) 
      setElementData(veh, "parent", vehCol) 
      setElementData(vehCol, "vehicle", true) 
      setElementData(vehCol, "MAX_Slots", 10) 
      local tires, engine, parts = getVehicleAddonInfos(getElementModel(veh)) 
      setElementData(vehCol, "Tire_inVehicle", 4) 
      setElementData(vehCol, "Engine_inVehicle", 1) 
      setElementData(vehCol, "Parts_inVehicle", 1) 
      setElementData(vehCol, "spawn", { 
        470, 
        x, 
        y, 
        z 
      }) 
      setElementData(vehCol, "fuel", 100) 
    --  setTimer(outputChatBox, 50, 1, "#6002B1[Core3]#FFFFFF-Patriot has been spawned!", thePlayer, 171, 205, 239, true) 
    end 
end 
end 
  
  
setTimer ( SpawnDayZPatriot, 30 * 1000, 0 ) 
vehicleAddonsInfo = { 
  { 
    470, 
    4, 
    1, 
    1 
  } 
} 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...