Pricing
Guide and instructions on how to setup prices for mods
Config.PriceEscalationPercent
Controls how much mod variant prices increase for each mod variant displayed in the menu. The higher the variant, the more it cost.Setting it to 0 means no price increase and all mod variants cost the same.
Usage:
0
: No escalation; all mod variants have the same price defined inConfig.Mods
.1 - 100
: Prices increase by the specified percentage for each higher mod variant, calculated on the price of the previous variant. For example, setting this to5
means each higher mod variant will cost 5% more than the previous one.
Config.PartAcquisitionCost
Determines whether to include the cost of acquiring parts in the final price of the mod.
Usage:
true
: Adds the item price fromConfig.Items['mods']
to the mod price, covering the acquisition cost of parts.false
: Does not add acquisition costs to the mod price.
Config.DefaultVehiclePrice
Specifies the fallback vehicle price used when the script cannot retrieve the vehicle value from a database or shared Lua file.
Usage:
50000
: Sets the default vehicle price to $50,000 if the vehicle value cannot be retrieved from a database or shared file. Adjust this value to suit your pricing needs.
Config.TieredPricing
Enables or disables tier-based multipliers for mod pricing. If enabled, it uses Config.PriceTiers
to apply different multipliers based on the vehicle price.
Usage:
true
: Enables tier-based multipliers for mod pricing.false
: Disables tier-based multipliers for mod pricing.
Config.PriceTiers
Defines the tiers for adjusting mod prices based on the vehicle price. Each tier specifies an upper limit and a corresponding multiplier. Config.TieredPricing
must be enabled!
Usage:
upperLimit
: (integer) The maximum vehicle price for the tier. Usemath.huge
for the last option.multiplier
: (float) The percentage applied to mod prices within the tier.
You can add or edit tiers as needed. Ensure that math.huge
is used as the upperLimit
for the highest tier to cover all values above the defined limits.
W.I.P
Last updated