VehicleTable
Description
Table structure passed to SANDBOX:PlayerSpawnVehicle, describing a spawnable Vehicle in Sandbox gamemode.
Example usage in defined a custom spawnable vehicle:
Members
table KeyValues
A list of key-value pairs to apply to the vehicle entity.
Possible valid keys that can be set are:
| Key | Description |
|---|---|
vehiclescript |
The vehicle script files contained in scripts\vehicles\ define the behaviour and handling of a vehicle. |
limitview |
Limit vertical view of the vehicles to +/-70 degrees (90 for unlimited) |
vehiclelocked |
Players cannot enter vehicle until it is unlocked. |
cargovisible |
Is the Magnusson cargo hopper visible? |
EnableGun |
Whether the Tau Cannon is enabled or disabled. Doesn't work correctly with the Episode Two jalopy model. |
NoHazardLights |
Stops the jalopy's hazard lights from turning on and flashing when the player exits the vehicle. |
table Members
Set these members on the spawned vehicle's table (Entity:GetTable) to given values.
Default: nil
Garry's Mod
Rust
Steamworks
Wiki Help