Project Zomboid

Project Zomboid

Rick's MLC Pay & Pump
174 Comments
RagingLoony 8 Jun @ 4:27am 
lol tyvm, love this community
RicksMLC  [author] 8 Jun @ 12:21am 
@Shipyard. I have updated the mod so the local functions are now public. Added the following comment:
-- Note for modders: To add mod support for your fuel handling there are three API methods to call:
-- RicksMLC_PayAtPumpAPI.initPurchaseFuel(this)
-- Call in the :new() Check the source is a fuel pump and initialise the pay amounts.
-- RicksMLC_PayAtPumpAPI.updateFuelPurchase(self, self.tankStart, self.tankTarget)
-- Call in :update(). Check the funds balance and reduce any credit card funds by the delta fuel amount.
-- Note that the :perform() is not needed as the funds balance checking and reducing is handled in updateFuelPurchase.
-- RicksMLC_PayAtPumpAPI.handleEmergencyStop(self)
-- Call in :stop(). Handle the take fuel action abort state by finishing the payment of the final amount.
RicksMLC  [author] 7 Jun @ 3:27am 
@Shipyard - Hmm... I had made some functions local (private) which should really be public so other people can add compatibility. The local functions are "initFuelPurchase", "payForFuel", "updateFuelPurchase" and "handleEmergencyStop". I will make these available once I have tested the changes and they should be sufficient to add compatibility override functions. An example implementation would be similar to the code inside the "require "TimedActions/UGTakePropane"" code on line 530 of RicksMLC_PayAtThePump.lua
Shipyard 6 Jun @ 8:23pm 
Hello again! Do you think it is possible to get this to work with [B42] Useful Barrels? In the comments, they mentioned that they tried to see if it was possible on their end to make a patch but could not. Would this be something you could do? Thanks!
Cyrisa 17 May @ 1:12pm 
Could this be patched to work with "JM3 refill propane"?
It would be pretty awesome to add cost to propane use at the pump.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3479641945
jamie bertle 11 Apr @ 3:45pm 
in b42 we spawn in with ID cards that seems to act as a way for us to use the atms?? . as i had no credit card when i used it. your chara already has a bank acc. which is fine i however i noticed that acc and the pzlinxu mods wallet acc thing. are not linked. i had over 2 grand in my bank acc yet, pzlinxu only showed a 1000. and it seemed to use my id card as bankcard or credit card. side note pzlinxu has very few items you can buy, and i cant seem to sell any items. zbay is far better then pzlinxu,it has far more buying options.
Cat lovers 22 Mar @ 6:01am 
美国,万恶的资本主义国家,即便到了PZ世界,在加油站都要付钱,而在河南,我们伟大文明的发源地,无论任何东西,都可以趁着混乱直接拾取,相当于紧急避险,任何人都不会觉得奇怪😋
Orlo6k 28 Feb @ 1:13pm 
Add the B42 tag to mod, please and thank you :)
Jammy 20 Feb @ 12:23am 
I would personally Loooove a way to melt down jewelry and process it into money somehow
RicksMLC  [author] 19 Feb @ 2:26am 
@CJ187 I have updated the mod to have a sandbox option to use cards and money in your bags if none found in your main inventory. See release notes for details.
RicksMLC  [author] 18 Feb @ 2:59pm 
@Yu-ti I don't think it would make a large difference for price variation, at least in the Vanilla Apocalypse games, as there are a lot more credit cards spawning in the world. However, I am thinking of introducing the Expiry Date on credit cards so they can expire over time (say a random date in the next 5 years)
This will change long (very long) playthroughs as the final expiration date approaches.
RicksMLC  [author] 18 Feb @ 2:56pm 
@Sherekmate Hmm... not related to Pay At The Pump, but, how about a blacksmith recipe to melt gold and silver to forge Money?
Yu-ti 18 Feb @ 2:28am 
This is a very fun mod!
I have a suggestion: how about a system where the unit price increases depending on the remaining amount of the pump. Depending on the balance, it might be a reason to use pumps far away. To do that, though, you need an option to see the price right in front of you.
CJ187 13 Feb @ 7:52am 
Please can you accept my friend invite?
i have a question about your mod
Sherekmate 23 Jan @ 2:07pm 
You can insert some mechanics with the jewels we find, it has no value for the game, but with this mod it could have. Maybe some machines at gas stations that exchange gold for money.:tedhead:
drshahramanvariazar 18 Jan @ 12:02pm 
@mereng

functional appliance 2 mod has that
Mereng 11 Jan @ 12:13pm 
There is a mod like this but to use the vending machines for chips and soda
MeLadShrimp 10 Jan @ 4:55am 
Uff this mod is super unrealistic, well unless you are an American I guess xD
RagingLoony 5 Jan @ 7:46pm 
Suggestion: Make credit card balance remain unknown until you check it at an ATM, then the balance is revealed. There are ATMS all over the world, could be a sandbox option to toggle the feature on and off, I might be in the minority who think its a neat idea lol. Checking whether or not the ATM is powered could also be a thing but that may be going too far
RicksMLC  [author] 2 Jan @ 2:18pm 
@Nekro Philadelphia Sure. Do you have a proposal you can send me, and we can discuss it?
RicksMLC  [author] 2 Jan @ 2:17pm 
@Passy Thanks for the suggestions. There is already another mod maker who made a mod called "Working Vending Machines". In his comments he stated he is not planning to update to B42 yet as IndieStone has said there will be changes to vending machines during the B42 phase. I am open to supporting vending machines in the future, but will wait for now.
Ex Ossibus Fumus 1 Jan @ 9:20pm 
@RicksMLC Would you be open for comissions regarding adding features to this mod?
Passy 29 Dec, 2024 @ 5:37am 
perhaps even increase the loot drops from vending machines too, or infinite usage, as long as we have money, Or perhaps infinite usage but with a cooldown of X number of items per X number of hours/days, idk, just some ideas
Passy 29 Dec, 2024 @ 5:35am 
could you do something similar to vending machines? like sodas and snacks machines
FISH 24 Dec, 2024 @ 5:09am 
Best mod to date! so much potential with this
I Have Consumed Human Flesh 24 Dec, 2024 @ 12:22am 
now i got a reason to take zombie's wallets! :steamhappy:
i was taking them anyway to flex in my singleplayer world
Dr. Tormindbind Mickmildididind 23 Dec, 2024 @ 12:37pm 
Thanks much! I've got a habit of hoarding money, and am using infinite pumps in my sandbox mode. I'll pretend like it's balancing, and not just satisfying a mind goblin of mine.
Shipyard 22 Dec, 2024 @ 1:39pm 
Wow. I appreciate that. Definitely makes my day. Thanks so much!! :)
RicksMLC  [author] 22 Dec, 2024 @ 12:32pm 
The main mod is now updated to B42. The 3rd party patch has not been tested at this time as Treads has not been updated yet.
RicksMLC  [author] 21 Dec, 2024 @ 7:11pm 
@Shipyard Thank you for the request. I was considering which mod to update next, and you have influenced my decision. I will be streaming the update to B42 on Twitch (search for "RicksMLC" ) in the next few minutes. No guarantees on how long it will take to update.
Shipyard 21 Dec, 2024 @ 5:03pm 
Definitely would like to see this on B42. Awesome mod.
ExXanAbuser 29 Nov, 2024 @ 3:46pm 
Thank you
RicksMLC  [author] 29 Nov, 2024 @ 2:08pm 
@EeXanAbuser the patch is a mod included in this workshop item. Ie: When you subscribe to this workshop item you get both mods in your mod list. It is in the PZ mod list below the Rick's MLC Pay & Pump
ExXanAbuser 29 Nov, 2024 @ 5:58am 
Can’t seem to find the patch
RicksMLC  [author] 28 Nov, 2024 @ 10:18pm 
@ExXanAbuser - yes it does. I recommend including the RicksMLC_PayAtThePump3rdPartyPatch which fixes a compatibility issue with Treads/FuelAPI.
ExXanAbuser 28 Nov, 2024 @ 6:05am 
Does this work with treads fuel types?
Dosboy 26 Nov, 2024 @ 5:21pm 
lol, I was just trying to make a joke as of course, there are no attendants inside. At least none you can trust. :)
RicksMLC  [author] 26 Nov, 2024 @ 4:03am 
@Dosboy I am not sure about your question. Pay at the pump is just that - without any Money or Credit Cards with a +ve balance the pumps will not produce fuel. You can still siphon fuel from other cars for free though... is that what you wanted to know?
Dosboy 25 Nov, 2024 @ 8:50pm 
Thanks for the reply. I like the idea of not getting totally free gas. It has to be "pay at the pump" only though right? :)
RicksMLC  [author] 25 Nov, 2024 @ 12:54am 
@Dosboy : AFAIK Money is only found in cash registers. Credit Cards can be found on zombies and in glove compartments of cars, and occasionally in houses/offices. When you put a newly-found credit card into your inventory the mod will give it a random value. At the start I rarely find credit cards, but as game-time goes on (say a week or two) the number of credit cards found increases. Having to desperately search bodies in the vain hope of finding a credit card is part of the charm of the mod. Note that unlucky reduces the chance to find loot by about 10%, so there is that. You will find some, but it may take more time/bodies.
Dosboy 24 Nov, 2024 @ 12:55pm 
Does money spawn on zombies? I'm testing the mod and am only finding a couple dollars in some of the registers.. gonna run out soon. Loot respawn is off... Character has "unlucky" trait.
RicksMLC  [author] 20 Nov, 2024 @ 7:47pm 
✮Kairo✮ I hope you can find something soon... I have also had periods where I could find anything except a new found appreciation of walking and fitness... I don't have any hard data on it, but I have found more credit cards as time goes on (about a month into the run). Note that a lot of cash registers have some Money in them, so maybe time to "hit the shops" as they say. From my personal plays I can say the insanity and tension for the want of cash/cards adds to the tension in a fun-yet-terrifying-way.
✮Kairo✮ 20 Nov, 2024 @ 7:40pm 
im going insane I CANT FIND MONEY OR A CARD QWQ my car is going to run out of gas :<
RicksMLC  [author] 15 Oct, 2024 @ 4:19pm 
@Orlo6k - I have increased the max fuel price to 10,000.00. That should allow you to keep the peasants off the road. ;)
RicksMLC  [author] 15 Oct, 2024 @ 4:11pm 
@KooLade I had a look at the mod Simple Fuel Storage and it looks like it would not interfere. Hmm... this is a puzzler. Are you able to search in your steam pz workshop mod directory for the word "ISTakeFuel" The default mod directory is "C:\Program Files (x86)\Steam\steamapps\workshop\content\108600" and all mods are below that one.
Orlo6k 15 Oct, 2024 @ 2:54pm 
Can you increase the maximum limit for fuel prices in sandbox settings? Currently maxes out at 100 and was hoping to set gas to 152 and propane to 313 for a server with harder play through
KooLade 15 Oct, 2024 @ 9:35am 
Thank you. I know what it is thanks to your input. It is "Simple Fuel Storage" https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2907607479&searchtext=

It didn't mention gas pumps, but i think its allowing them to overide and be fueled from. Thank you. I should have just asked if you mod disables filling cans from pumps or not. Thanks for your time.
RicksMLC  [author] 15 Oct, 2024 @ 5:21am 
@KooLade The mod already does not allow taking fuel from a fuel pump into an empty gas can without paying (ie: right click on a fuel pump and select "Take Fuel | Empty Gas Can/Gas Can") It does this by overriding the ISTakeFuel timed action. It is possible you have another mod which also replaces the ISTakeFuel. For example the Simple Overhaul Traits and Occupations mod and Treads Fuel Types Framework mod overrides the ISTakeFuel, but I have code to detect that mod and handle it. So perhaps another mod overrides the timed action code in an "unfriendly" manner so my mod code is masked out and is not run. Do you have any other fuel mods running.
KooLade 14 Oct, 2024 @ 11:19pm 
Also, thank you for the mod. It is really good for immersion. People just are filling gas cans to fill their cars, so the pump is magically on for people with empty gas can in hand.