• Entilty
    0 replies, posted
I'm trying to place a entity on a car and I don't know how to launch the entity when the car spawns can someone please help me with it. All help is appreciated // Add pulley if its tow truck if(vehicleID == "%") then //-1.1618 4.7689 106.6799 newVehicle.Thingy = ents.Create("ent_towtruck") newVehicle.Thingy:SetPos(newVehicle:GetPos() + newVehicle:GetUp() * 35 + newVehicle:GetForward() * -118 + newVehicle:GetRight() * -35) newVehicle.Thingy:SetAngles(newVehicle:GetAngles() + Angle(0, 270, 0)) newVehicle.Thingy:SetVehicle(newVehicle) newVehicle.Thingy.ThePlayer = Player newVehicle.Thingy:Spawn() end I have that code sitting in the vehicle file but when I spawn the vehicle it doesn't do anything
Sorry, you need to Log In to post a reply to this thread.