π οΈConfiguration
Let's configure your new script to your liking!
Language
There are a few default languages that come with the script. You can easily add your own language or just translate one of the default ones. Let me show you how to choose your language.
1) Go to the fxmanifest.lua and look for shared_scripts.
2) You will find this on that spot:
shared_scripts {
'translations/en.lua', --Choose a language, you can add some yourself if you want
'config.lua'
}3) On the 2nd line you see translations/en.lua this stands for English. So if you want Dutch for example you choose nl.lua instead of en.lua. This is possible because nl.lua is already present in the translations folder.
Configurations
Config.WashSettings
Config.WashSettings = {
['markedbills'] = {
type = 'metadata', --amount / worth / metadata (READ DOCS)
value = nil, --READ DOCS
time = 1, --Time to wash item in minutes
lossPercent = 10 --Percentage of loss when washing
}
}Variables:
Type: metadata / amount / worth
"metadata" uses the
info.worthmetadata of the item. For example theinfo.worthis 7500$ then you wash 1 bag at the time and the value in return is the7500$ - losspercent."amount" will use the amount of bills/bags you have on hand. For example when you put the variable
valueon 100 then people can wash 100 bags at the same time and the worth of the wash is100 - losspercent."worth" will use
valueas the worth of the wash. If you put value on 1000,1 bag = 1000$ - losspercent.
Value: nil / any other number
The
valuenot used when puttingtypeon metadata.The
valueis put on the amount of bags you want to be able to be washed at 1 time when usingtypeas "amount".The
valueis put on the amount of money you want players to earn from 1 bag.
Time: any number
This is the time for 1 wash to complete (in minutes)
Losspercent: any number
The amount of money that gets lost when taking the money out of the washing machine.
Money put in - losspercent = final earnings.
Adding more items:
Config.WashSettings = {
['markedbills'] = {
type = 'metadata',
value = nil,
time = 1,
lossPercent = 10
},
['inkedbills'] = {
type = 'worth',
value = 1000,
time = 1,
lossPercent = 10
},
['moneyrolls'] = {
type = 'amount',
value = 100,
time = 1,
lossPercent = 15
}
}Last updated
