Config
RiP-Fuel offers a fuel system with ergonomic fuel consumption as well as a business system. Here are the business options from config.lua
explained.
RiP.DefaultCosts
The default costs for each fuel type for gas-station owners.
RiP.DefaultCosts = {
['petrol'] = 160, -- [INTEGER] price per liter petrol
['diesel'] = 90, -- [INTEGER] price per liter diesel
['electricity'] = 20 -- [INTEGER] price per percent electricity
}
RiP.Activity
RiP.Activity = {
Enable = true, -- [BOOLEAN] enable automatic business reset after inactivity
Notify = 6, -- [INTEGER] (inactive) days after owner will be reminded
Remove = 9, -- [INTEGER] (inactive) days after business will be removed
}
RiP.Fuel
In order to add more gas stations just copy-paste the code below under the last gas station in your config.
[1] = { -- [INTEGER] unique id
Location = vector3(265.10531616211,-1262.6643066406,29.292951583862), -- [VECTOR] center of the gas station (x,y,z)
Range = 20.0, -- [DECIMAL] range of the location to get all fuel pumps in
Boss = vector3(294.53115844727,-1251.6435546875,29.4001121521), -- [VECTOR] location of the boss menu (x,y,z)
RetailPrice = 60000, -- [INTEGER] gas station price
DefaultPrice = {
Petrol = 320, -- [INTEGER] default petrol price (if not sold)
Diesel = 260, -- [INTEGER] default petrol price (if not sold)
Electricity = 90 -- [INTEGER] default petrol price (if not sold)
}
},
RiP.Flight
In order to add more planefuel stations just copy-paste the code below under the last planefuel station in your config.
{
Location = vector3(-1265.92, -3423.72, 13.94), -- [VECTOR] location for fuel station (x,y,z)
Range = 29.0, -- [DECIMAL] range around location to access menu
Price = 199, -- [INTEGER] price per liter kerosene
Blip = {
Name = 'RiP-PlaneFuel', -- [STRING] blip name
Type = 361, -- [INTEGER] blip sprite
Scale = 0.6, -- [DECIMAL] blip size
Display = 4 -- [INTEGER] blip display type
}
}