Project Zomboid

Project Zomboid

CarWanna
 Dit topic is vastgepind, dus het is waarschijnlijk belangrijk
Xyberviri  [ontwikkelaar] 29 aug 2022 om 19:07
HOWTO: Custom Pinkslip for my own modpack. (step by step instructions.)
Sometimes a pinkslip for the car we want to include in our server mod list is not available, if its a popular creator with multiple mods that i'm already covering ill most likely add it with a heads up.

If its a one off vehicle typically its easier to just create a custom item for the server that needs the pinkslip.

This is the basic template you need for pretty much all vehicles, keys can be spawned for any vehicle even if they cant be used to lock anything.

module PinkSlip { imports { Base } item DodgeCC { DisplayCategory = CarWanna, Weight = 0.1, Type = Normal, Icon = AutoTitle, DisplayName = PinkSlip: Dodge Challenger, VehicleID = Base.DodgeCC, Skin = 0, WorldStaticModel = CW.AutoTitle, Tooltip = Tooltip_ClaimOutSide, Condition = 100, GasTank = 100, HasKey = true, Tags = PinkSlip, } }
To add a new one you just need to copy the template and change 3 lines.

item DodgeCC
This is the vehicle id typically but it can really be anything, it does need to be unique unless you are overwritting a item using the old school script method.

DisplayName = PinkSlip: Dodge Challenger,
This can also be anything, but it really should be a descriptive vehicle name, i will try to add descriptions to a pinkslip if multiple ones have the same name.

VehicleID = Base.DodgeCC,
So this one has to be correct, for 99% of every vehicle i have downloaded the module is base with the exception of the 1% being the w900 truck where the Vehicleid there was "Rotators.SemiTruck", you can check the vehicle script located in media\script\vehicle and see if its inside of a different module.

One thing to mention is the module needs to be "PinkSlip", if you want carwanna to be able to pick up the pinkslip and add it to the loot table.

If you dont want a pinkslip to go to the loot table add "isBlacklisted = true," to the pinkslip. you will be able to verify if a pinkslip is on your loot tables by checking the console.txt file.

You do NOT need a recipe to activate it, that is what Tags=PinkSlip is for.

As always if you need help or assistance with this feel free to reach out to me on discord.
Laatst bewerkt door Xyberviri; 13 sep 2022 om 11:48