Filters
clothes
barbershop
Filter Barbershop
This filter can be activated or deactivated, and you can set values for each category
['default'] = { -- unique id
male = { -- male or female
hair = { -- categories barbershop, config/barbershop.lua
-- disabled = true, -- toggle view category
models = {
defaultPrice = 100,
--remove = { [1] = true, [2] = true },
-- only = { [2] = true },
-- prices = { [2] = 1000 },
},
prices = {
primaryColor = 100,
secondaryColor = 50, -- secondary only hair
}
},
...
...
Models:
defaultPrice
number: Price for all models in the categoryremove
table: case configured, it will remove the informed models.only
table: when a case is configured, the system will only release the models configured in this tableprices
table: If configured, it will set values different from the defaultPrice for each model
Filter Clothes
Filters = {
["default"] = { -- unique id
["mask"] = { -- categories id
models = {
["male"] = { -- model MP
defaultPrice = 100,
-- only = { [0] = true, [1] = true, [8] = true, [14] = true },
labels = {
[0] = { label = "Natal", bgColor = '#1f1f1f', fontColor = '#FFFFFF' }
},
custom = {
[0] = {
[0] = { price = 0, label = 'Evento Natal' }
}
}
},
["female"] = {
defaultPrice = 100,
only = { [0] = true, [1] = true, [8] = true, [14] = true },
labels = {
[0] = { label = "Natal", bgColor = '#1f1f1f', fontColor = '#FFFFFF' }
},
custom = {
[0] = { -- drawable
[0] = { price = 0, label = 'Evento Natal' } -- textures
},
[14] = {
[0] = { price = 0, label = 'label 0' },
[1] = { price = 1000, label = 'label 1' },
},
}
},
}
}
}
},Propriedades :
defaultPrice
number: default price for all models in the category.remove
table: case configured, it will remove the informed models.only
table: when a case is configured, the system will only release the models configured in this table.custom
table: when configured, the system will apply prices (replacing defaultPrice) for textures, labels, etc.
How to configure in SPOT
To load the filter information, simply provide it in the spots as shown below:
return {
['skinshop2'] = {
coords = {
[1] = vector3(73.36, -1397.05, 29.67)
},
clothesFilter = 'default',
barberFilter = 'default',
steps = {
'barbershop',
'clothes',
'save'
}
},
}
Last updated