Simple resource with 0.0ms resmon idle, up to 0.02 when starting ptfx.
Standalone Framework-wise as there’s no framework dependencies if not using item or QB notify. QB/ESX item setup, I don’t use esx so test or pr at your will.
Command or Item use.
Custom prop.
How To Install
Drag and drop bostra-hairstyle
Ensure after ox_lib, and framework if using items.
ox_inventory/data/items.lua
['hairspray'] = {
label = 'Hairspray',
description = 'A can of hairspray to restyle your hair',
weight = 1,
stack = false,
close = true,
consume = 0,
client = {
event = 'bostra-hairstyle:client:openMenu'
},}
qb/lj/ps-inventory goes into qb-core/shared/items.lua
["hairspray"] = {
["name"] = "hairspray",
["label"] = "Hairspray",
["weight"] = 1000,
["type"] = "item",
["image"] = "hairspray.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "A can of hairspray to restyle your hair"
},
How to Use
Use /hathair (position) for example /hathair 1 will be the Hair1 in the config
or
Would be a great solution to clipping hair which I’ve wanted for quite some time, I imagine the hairs we have to have right? so the slicked hair option to stop clipping we would have to have? because I don’t in my city so where did you get it from?
the slicked down hair is this free hair
But the config is super configurable, you can use the 3 hair i have setup, or add more hairs following the config, changing the drawable number in the config will change the hair it changes to which you can change the description of for the menu, in the config.
For instance for men:
Male = {
Hair1 = {
Position = 1, -- POSTION NEEDS TO MATCH THE INTEGER FOLLOWING HAIR, IE: Hair1 = 1, Hair2 = 2, Hair3 = 3
Drawable = 0, -- Drawable ID of your hair model
Title = "Slicked Back Hair",
Description = "Style your hair and slick it back.",
},
This would be your 0 slot hair, if you wanted it to be your 1 or 2 you’d change Drawable = #, and then you can describe your changed hair there too.
I have a question, I added hairstyle slots to the config (about 15) and it seems they are never listed in the correct order in game number-wise. Was wondering if that was a me thing or not.