Project Zomboid

Project Zomboid

182 ratings
Vehicle Additions API
2
   
Award
Favorite
Favorited
Unfavorite
Mod: Mod
File Size
Posted
Updated
0.268 MB
12 May, 2020 @ 12:26pm
28 May @ 8:31pm
19 Change Notes ( view )

Subscribe to download
Vehicle Additions API

In 1 collection by planetalgol
Monghell Candidate Mods by Planetalgol
55 items
Description
This is a bundle of scripts and code intended to provide new vehicle part options for use in vehicle mods. More features are planned for the future, but, currently, the following are available:
- Gasoline Storage Tanks
- Propane Storage Tanks
- Gun Racks
- Mattresses
- Televisions

Please note, although there is basic code in this mod for Fridges and Ovens, we are not fully implementing them until build 41 Multiplayer is released and stable, as we need to test how they work in multiplayer before they are finished.

Here are examples of mods that use his API:
https://steamcommunity.com/sharedfiles/filedetails/?id=2094501155
https://steamcommunity.com/sharedfiles/filedetails/?id=2094816565

In order to have a Gasoline Storage Tank in a vehicle put the line "template = 500FuelTruckTank," somewhere in the script for that vehicle.
In order to have a Gun Rack in a vehicle put the line "template =GunRack," somewhere in the script for that vehicle.
Mattress "template = Mattress,"
Television "template = TV,"

Then simply include the line require=vehicle_additions in your mod.info file to utilize these features in your own vehicles mods.

Please do not copy this code for your own mods. This code is being further developed, so you will both not benefit from future improvements to this code, and you will also suffer compatibility issues with other mods using this code.

Workshop ID: 2094336923
Mod ID: vehicle_additions