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.worth metadata of the item. For example the info.worth is 7500$ then you wash 1 bag at the time and the value in return is the 7500$ - losspercent.
"amount" will use the amount of bills/bags you have on hand. For example when you put the variable value on 100 then people can wash 100 bags at the same time and the worth of the wash is 100 - losspercent.
"worth" will use value as the worth of the wash. If you put value on 1000, 1 bag = 1000$ - losspercent.
Value: nil / any other number
The value not used when putting type on metadata.
The value is put on the amount of bags you want to be able to be washed at 1 time when using type as "amount".
The value is 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
}
}
Config.Shell
Interior of laundromat (default GTA)
Config.ContactPed
model | Model of the ped
pos | Position of the ped
price | Price to pay when you start the mission
cooldown | Cooldown in hours, time a laundromat stays active