Project Zomboid

Project Zomboid

CarWanna
 This topic has been pinned, so it's probably important
Xyberviri  [developer] 3 Jun, 2022 @ 9:57pm
CarWanna Loot Options
CarWanna Now supports pinkslips found as loot, further more pinkslips are added dynamically so all pinkslips will automatically get added to the drop tables.

PinkSlips can be found in Auto Repair Shops and in Pawn shop offices (ie the back area)

Mechanic zombies will also have a chance of dropping pinkslips.

CarWanna supports Mod Options, Alternatively CarWanna supports lua config files placed in the lua\shared folder of other mods. MAKE SURE YOU LOAD AFTER CARWANNA

here is a example lua config file for CarWanna:
local SETTINGS = CW.SETTINGS or {} SETTINGS.enabled = true -- true/false - Enables Loot spawns with out mod options SETTINGS.options.enablefoundloot = true -- Spawn loot in buildings. SETTINGS.options.foundlootweight = 1 -- 1 Rare - 6 Always, chance that a pinkslip will spawn in a container SETTINGS.options.enablezedloot = true -- loot found on zeds SETTINGS.options.zedlootrarity = 1 -- 1 Rare - 7 Super Common SETTINGS.options.blacklist = "PinkSlip.Van;PinkSlip.SUV" -- Pink slips you dont want dropping.

when using a lua config "CW.SETTINGS.enabled" must be true to tell carwanna we want to spawn cars.

If you are already using something like Arsenal26 custom config you can also just throw this in a file in next to your custom config.

ALTERNATIVELY if you are using mod options, you can also just upload your Zomboid\lua\mod-options.ini file to the same folder on your server and that is how you can get the settings up to your server with out making an additional mod.. (this is also how you get server side mod options to work)

When configured correctly you will see one of the following in your log files:
CarWanna MOD OPTIONS DETECTED CarWanna LUA OPTIONS DETECTED

Followed by all pink slips added to your loot tables along with their weights.
Last edited by Xyberviri; 27 Jul, 2022 @ 8:43am
< >
Showing 1-4 of 4 comments
Xyberviri  [developer] 13 Jun, 2022 @ 6:01pm 
Blacklisting a pinkslip via the script manager
local scriptItem = ScriptManager.instance:getItem("PinkSlip.Van") if scriptItem then scriptItem:DoParam("isBlacklisted = true") end

Change a pinkslips loot chances in containers
local scriptItem = ScriptManager.instance:getItem("PinkSlip.Van") if scriptItem then scriptItem:DoParam("LootChance = 1") end
All pink slips are added to a table with the default weight of 1, changing this down to 0.0001 makes the item uber rare versus other pinkslips and changing this up to 100 will make this pinkslip always show up in loot tables versus other pinkslips..

Again this only applies to containers, pinkslips found on zombies are still really rare and only found on mechanics.
Last edited by Xyberviri; 13 Jun, 2022 @ 6:02pm
Lu5ck 16 Jun, 2022 @ 12:30am 
The cw_options.lua show this
local SETTINGS = { options = { enablefoundloot = true, --foundlootrarity = 5, foundlootweight = 1, enablezedloot = true, zedlootrarity = 1, --pinkslipdamage = 1, blacklist = "", }, names = { enablefoundloot = "Enable Found Loot", --foundlootrarity = "Found Loot Rarity", foundlootweight = "Found Loot Weight", enablezedloot = "Enable Zed Loot", zedlootrarity = "Zed Loot Rarity", --pinkslipdamage = "PinkSlip Loot Damage", blacklist = "PinkSlip Black List", }, mod_blacklist = {"PinkSlip.SportsCar_ez"}, mod_id = "CW", mod_shortname = "CarWanna", enabled = false, }

What is
mod_blacklist = {"PinkSlip.SportsCar_ez"}, mod_id = "CW", mod_shortname = "CarWanna", enabled = false,
Xyberviri  [developer] 16 Jun, 2022 @ 1:52pm 
So this part is for mod options
mod_id = "CW", mod_shortname = "CarWanna",

This tells carwanna you want to use a lua file instead of mod options
enabled = false,

This is a built in black list for Base.SportsCar_ez since it doesnt have a name and seems to be unfinished last I checked.

mod_blacklist = {"PinkSlip.SportsCar_ez"},

this last one can be cleared like so:
local CW = CW or {} local SETTINGS = CW.SETTINGS or {} SETTINGS.mod_blacklist = {}
Last edited by Xyberviri; 27 Jul, 2022 @ 8:40am
Xyberviri  [developer] 26 Sep, 2022 @ 11:32am 
Basic lua options needed to enable car spawning:

Place this in a file in media\lua\server\whatever.lua

if not CW then return end local SETTINGS = CW.SETTINGS or {} SETTINGS.enabled = true SETTINGS.options.enablefoundloot = true SETTINGS.options.foundlootweight = 1 SETTINGS.options.enablezedloot = true SETTINGS.options.zedlootrarity = 1 SETTINGS.options.blacklist = ""
Last edited by Xyberviri; 26 Sep, 2022 @ 10:06pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50