car

Module: vehicle_spawn_car.lua

What it does

Spawns a randomly selected vehicle at the player's current position, facing East. Each part of the spawned vehicle has a 10% chance of being destroyed. Cannot spawn indoors — if the player is inside a room the event is blocked and the player is notified.

Trigger type

car

Parameters

ParameterTypeDefaultValid ValuesDescription
This module takes no parameters. The vehicle type is chosen at random from the pool below.
Vehicle pool (32 types):
Base.CarNormal Base.CarLightsPolice Base.CarLights Base.CarStationWagon2 Base.CarStationWagon Base.SmallCar Base.SportsCar Base.Van Base.VanSpiffo Base.VanSeats Base.VanAmbulance Base.VanRadio Base.StepVan Base.StepVanMail Base.VanSpecial Base.CarLuxury Base.CarModern Base.CarModern02 Base.OffRoad Base.SmallCar02 Base.SUV Base.CarTaxi Base.CarTaxi2 Base.PickUpVanLights Base.PickUpVanLightsPolice Base.PickUpVanLightsFire Base.PickUpVan Base.PickUpTruckLights Base.PickUpTruckLightsFire Base.PickUpTruck Base.PickUpVanMccoy Base.PickUpTruckMccoy

Examples

Spawn a random car at the player's location
{ type="car" }
Use as a channel point reward
{ type="car", message="!spawncar" }
Include in a weighted event pool
{ type="car", weight=3 }