Cheats.

#1Paingiver00Posted 11/12/2013 6:44:02 PM
These inventory cheats are for Steam release version, and probably other versions too.
The magic word was said, and so it was done.

Based upon Not Too Much Items mod, made by acex222.
Add more items and xp by paingiver00.

1. Put CheatPlayerAddItem.lua and CheatPlayerXPSkill.lua in gamedirectory media lua folder. Example C:\Program Files\Steam\steamapps\common\ProjectZomboid\media\lua

2. In-game, hold an F-key and press a letter key after that.

F1+Y=Popbottle
F1+U=Chocolate
F1+I=Canned Soup
F1+O=Canned beans
F1+P=Can opener
F1+K=Pot
F1+L=Bowl
F1+N=Pan
F1+M=RoastingPan
F1+T=Bread
F1+G=Chicken
F1+H=Steak
F1+V=Cheese
F1+B=Butter

F2+Y=Pistol
F2+U=9mm Rounds
F2+I=Shotgun
F2+O=Shotgun Shells
F2+P=Axe
F2+K=Nailed Baseballbat
F2+L=Molotov
F2+N=Kitchen Knife

F3+Y=Saw
F3+U=Hammer
F3+I=Sheet
F3+O=Nails
F3+P=Plank
F3+K=Barbed Wire
F3+L=Sandbag
F3+N=Hinge
F3+M=Doorknob

F4+Y=Hand Shovel
F4+U=Shovel
F4+I=Watering Can
F4+O=Carrot Bag Seed
F4+P=Potato Bag Seed
F4+J=Broccoli Bag Seed
F4+K=Red Radish Bag Seed
F4+L=Strewberrie Bag Seed
F4+N=Tomato Bag Seed
F4+M=Cabbage Bag Seed
F4+B=Fertilizer
F4+H=Gardening spray
F4+G=Milk

F5+Y=School Bag
F5+U=Big Hiking Bag
F5+I=Book
F5+O=BathTowel
F5+P=Flashlight
F5+K=Battery
F5+L=CampfireKit
F5+N=CampingTentKit
F5+T=Log
F5+G=Gas can
F5+H=Bucket

F6+Y=Bandage
F6+U=Painkillers
F6+I=Beta Blockers
F6+O=Anti-Depressants
F6+P=Vitamins
F6+K=Sleeping Tablets
F6+L=Tissue
F6+N=Cigarettes
F6+B=Hot Cuppa

F7+Y=Carpentry for Beginners
F7+U=Carpentry 2
F7+I=Carpentry 3
F7+O=Farming for Beginners
F7+P=Farming 2
F7+K=Farming 3
F7+L=Cooking 1
F7+N=Cooking 2
F7+M=Cooking 3

F11+Y=Add 1000xp to Strength and Fitness (related to traits)
F11+U=Add 1000xp to all skills


greetings,

Easipak and Paingiver00
#2Paingiver00(Topic Creator)Posted 11/12/2013 6:45:29 PM
Create file CheatPlayerAddItem.lua. Then enter this in file using text editor.

getCore()
getPlayer()

--F1 is for Food and Cooking
--F2 is for Weapons
--F3 is for Building materials
--F4 is for Farming
--F5 is for Miscellaneous
--F6 is for Medicine
--F6 is for Books

function AddItem(character)
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.PopBottle");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Chocolate");
end
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.TinnedSoup");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.TinnedBeans");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.TinOpener");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Pot");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Bowl");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Pan");
end
if isKeyDown(Keyboard.KEY_M) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.RoastingPan");
end
if isKeyDown(Keyboard.KEY_T) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Bread");
end
if isKeyDown(Keyboard.KEY_G) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Chicken");
end
if isKeyDown(Keyboard.KEY_H) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Steak");
end
if isKeyDown(Keyboard.KEY_V) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Cheese");
end
if isKeyDown(Keyboard.KEY_B) and
isKeyDown(Keyboard.KEY_F1) then
character:getInventory():AddItem("Base.Butter");
end
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.Pistol");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.Bullets9mm");
end
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.Shotgun");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.ShotgunShells");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.Axe");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.BaseballBatNails");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.Molotov");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F2) then
character:getInventory():AddItem("Base.KitchenKnife");
end
#3Paingiver00(Topic Creator)Posted 11/12/2013 6:46:11 PM
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Saw");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Hammer");
end
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Sheet");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Nails");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Plank");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.BarbedWire");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Sandbag");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Hinge");
end
if isKeyDown(Keyboard.KEY_M) and
isKeyDown(Keyboard.KEY_F3) then
character:getInventory():AddItem("Base.Doorknob");
end
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.HandShovel");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.Shovel");
end
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.WateredCan");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.CarrotBagSeed");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.PotatoBagSeed");
end
if isKeyDown(Keyboard.KEY_J) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.BroccoliBagSeed");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.RedRadishBagSeed");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.StrewberrieBagSeed");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.TomatoBagSeed");
end
if isKeyDown(Keyboard.KEY_M) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.CabbageBagSeed");
end
if isKeyDown(Keyboard.KEY_B) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.Fertilizer");
end
if isKeyDown(Keyboard.KEY_H) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.GardeningSprayEmpty");
end
if isKeyDown(Keyboard.KEY_G) and
isKeyDown(Keyboard.KEY_F4) then
character:getInventory():AddItem("farming.Milk");
end
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.Schoolbag");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.BigHikingBag");
end
#4Paingiver00(Topic Creator)Posted 11/12/2013 6:46:33 PM
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.Book");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.BathTowel");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.Torch");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.Battery");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("camping.CampfireKit");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("camping.CampingTentKit");
end
if isKeyDown(Keyboard.KEY_T) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.Log");
end
if isKeyDown(Keyboard.KEY_G) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.PetrolCan");
end
if isKeyDown(Keyboard.KEY_H) and
isKeyDown(Keyboard.KEY_F5) then
character:getInventory():AddItem("Base.BucketEmpty");
end
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.Bandage");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.Pills");
end
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.PillsBeta");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.PillsAntiDep");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.PillsVitamins");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.PillsSleepingTablets");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.Tissue");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.Cigarettes");
end
if isKeyDown(Keyboard.KEY_B) and
isKeyDown(Keyboard.KEY_F6) then
character:getInventory():AddItem("Base.Mugfulll");
end
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookCarpentry1");
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookCarpentry2");
end
if isKeyDown(Keyboard.KEY_I) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookCarpentry3");
end
if isKeyDown(Keyboard.KEY_O) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookFarming1");
end
if isKeyDown(Keyboard.KEY_P) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookFarming2");
end
if isKeyDown(Keyboard.KEY_K) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookFarming3");
end
if isKeyDown(Keyboard.KEY_L) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookCooking1");
end
if isKeyDown(Keyboard.KEY_N) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookCooking2");
end
if isKeyDown(Keyboard.KEY_M) and
isKeyDown(Keyboard.KEY_F7) then
character:getInventory():AddItem("Base.BookCooking3");
end
end

Events.OnPlayerUpdate.Add(AddItem);
#5Paingiver00(Topic Creator)Posted 11/12/2013 6:48:05 PM
Create file CheatPlayerXPSkill.lua Then enter this in file using text editor.

getCore()
getPlayer()

--F12 is for XP

function AddPlayerXP(character)
if isKeyDown(Keyboard.KEY_Y) and
isKeyDown(Keyboard.KEY_F11) then
character:getXp():AddXP(Perks.Fitness, 1000);
character:getXp():AddXP(Perks.Strength, 1000);
end
if isKeyDown(Keyboard.KEY_U) and
isKeyDown(Keyboard.KEY_F11) then
character:getXp():AddXP(Perks.Sprinting, 1000);
character:getXp():AddXP(Perks.Lightfoot, 1000);
character:getXp():AddXP(Perks.Nimble, 1000);
character:getXp():AddXP(Perks.Sneak, 1000);
character:getXp():AddXP(Perks.Cooking, 1000);
character:getXp():AddXP(Perks.Woodwork, 1000);
character:getXp():AddXP(Perks.Farming, 1000);
character:getXp():AddXP(Perks.Axe, 1000);
character:getXp():AddXP(Perks.Blunt, 1000);
character:getXp():AddXP(Perks.Aiming, 1000);
character:getXp():AddXP(Perks.Reloading, 1000);
end
-- if isKeyDown(Keyboard.KEY_I) and
-- isKeyDown(Keyboard.KEY_F11) then
-- character:getXp():AddXP(Perks.Strength, 1);
-- end
end

Events.OnPlayerUpdate.Add(AddPlayerXP);
#6jaydigPosted 11/23/2013 4:20:43 PM
Thanks! I just got my Steam key, so I'm giving this another go.