โ๏ธ Hair & beard coloring โ
Documentation relating to the kd_haidresser_coloring add-on for Hairdresser script.
1. Installation โ
WARNING
Hairdresser script is required to use this add-on
To install kd_hairdresser_coloring:
- Drag and drop the resource into your resources folder
- kd_hairdresser_coloring
- Add this ensure in your server.cfg after
ensure kd_hairdresserensure kd_hairdresser_coloring
Congratulation, the Hair & Beard coloring add-on is ready to be used!
2. Usage โ
Go into the hairdresser to dye or hair/beard.
3. Config.lua file โ
Loading configuration...
4. For developers โ
Filters are the new way to modify data used by the script. These filters are fired at a specific point in time during the execution of the script. But contrary to events, filters are synchronous.
- Syntax:
lua
-- @param <actionName> - name of the action
-- @param <argumentList> - list of arguments which are passed
exports.kd_hairdresser_coloring:registerFilter(<actionName>, function(variable)
-- Add your new data here
return variable -- Don't forget to return the value
end)Client Restrict the coloring โ
Fires after completed the coloring prompt
lua
-- @param canUse - boolean
exports.kd_hairdresser_coloring:registerFilter('canOpenColorPalette', function(canUse)
return canUse
end)