Project Zomboid

Project Zomboid

Paint Your Ride
 此主题已被置顶,因此可能具有重要性
NoctisFalco  [开发者] 2022 年 1 月 6 日 上午 2:29
For modders
To make this mod support your vehicles add a lua file (or edit existing if your mod has one) to your mod's media/lua/shared folder with the following contents:

require('PaintVehicleConfig') if getActivatedMods():contains("PaintYourRide") and PaintVehicleConfig then PaintVehicleConfig.addVehicle(vehicleType, paintRequired) end

vehicleType - for example "Base.CarNormal". Module name ("Base.") must be specified.
paintRequired - required amount of paint (also used to calculate primer requirements). Check the PaintVehicleConfig.lua file for examples to make your requirement somewhat balanced.
最后由 NoctisFalco 编辑于; 2022 年 1 月 13 日 上午 12:15