Project Zomboid

Project Zomboid

Rick's MLC Pay & Pump
Showing 1-10 of 19 entries
< 1  2 >
Update: 8 Jun @ 12:18am

Updated code so the local functions are now available for modders to use.

Update: 20 Feb @ 3:13am

Updated for B41

Update: 19 Feb @ 2:24am

Added a sandbox option to automatically find funds (credit cards and Money) in your bags in your inventory. By default this is off.
When it is on the mod will look in your main inventory first and then bags to find credit cards. When the credit cards in your main inventory are used up, it will use the ones in your bags. If it can't find any credit cards it will use the first Money it can find.
This means if you have Money in your main inventory and a credit card in your backpack, it will use the credit card before the Money.

Update: 21 Dec, 2024 @ 10:22pm

Updated for B42. The balance is now appended after the cardholder's name.

Update: 15 Oct, 2024 @ 4:17pm

Updated the max cost for fuels to 10000.0

Update: 22 Sep, 2024 @ 6:40am

Updated the 3rd Party Patch to also patch for the PZK vehicles mod, as it uses the same code as Treads.

Update: 21 Sep, 2024 @ 5:26am

Updated sandbox options for the credit card initial value ranges. Min and max now have the same range, so it is possible to set a fixed value by setting min and max to the same number.
Added checkboxes to turn on/off Money and Credit Cards. Note that turning off both will prevent anyone from getting gas :)

Update: 4 Sep, 2024 @ 5:28pm

Added check so the Treads compatibility patch does not error if the FuelAPI is not included in the mods.

Update: 18 Jul, 2024 @ 1:36am

Added to the 3rd party patch for the The Filibuster Rhymes' Used Cars! Fuel Test "FuelTruck_ISRefuelFromGasPump_start.lua" file which has an override for the ISRefuelFromGasPump:start() which looks like test code with hard-coded values, and does not set the self.sound. This will cause the ISRefuelFromGasPump:stop() to error when it tries to stop the sound.

This patch removes the FR :start() method by replacing it with the original vanilla function.

Update: 11 Jul, 2024 @ 5:38am

Updated to correct the cost of fuel from the pump by dividing the amount spent by the cost/litre. Silly mistake really. I could claim I was too tired to code it properly in a fit of otherwise inspirational coding, and that might be the case. Certainly this is a consequence of insufficient testing.