Free tool for jo_libs

Price generator

Pick what the player pays: money, gold, rol, items, or more than one way to pay. Copy the Lua into the config of any script that prices things with jo_libs, like jo_clothingstore and our clothing.

Start from

Credit

Built on jo_libs by Jump On Studios

Prices like these are read by the pricing module of jo_libs, the free, open-source RedM library by Jump On Studios (KadDarem and contributors), shared under the LGPL-3.0 licence. Our clothing needs it too, through jo_clothingstore. Jump On Studios has its own price generator in their docs; this one writes the same format.

Ways to pay and costs

Every cost inside one way to pay is paid together. With two or more ways to pay, the player picks one. A kept item is checked for but not taken, like a licence.

Where it goes

Value is what comes after price = in a config. Config line is the whole line with a comment saying what it costs. jo.pricing is for your own scripts: it makes the price object with jo_libs.

Installing jo_libs

Unzip it into your resources, add ensure jo_libs to server.cfg above the scripts that use it, and to update, delete the old folder first rather than copying over it.