I made it so a player can spawn an SCar like so:
if (player:GetCount(“vehicles”) > 0) then
evorp.player.notify(player, “You already have a vehicle out, part it first, and then try again.”, 1);
if (player:Team() == TEAM_HOSS or player:Team() == TEAM_SS or player:Team() == TEAM_OFFICER or player:Team() == TEAM_COMMANDER) then
local car = ents.Create(“sent_sakarias_car_porsche911cop”)
car:SetPos(player:GetEyeTrace().HitPos+Vector(0, 0, 64))
car.SpawnedBy = player
evorp.player.notify(player, “You cannot spawn this car!”, 1);
How do I make it so that when the car is at a specific location of the map, it automatically gets removed?
Like, I want to make it so that when the car stops at the petrol bunk of v33x, it gets removed.
Also, how do I make it so that this is called when the player left clicks while inside the car: