Features:
- Fully Open-Source
- Customizable
- Easy to configure
- 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
- Use item in inventory
Dependencies
ox_lib
9 Likes
Sick ! Thank you B for the share ! Where can i find that ped’s body ? I was looking for something like that.
Thanks! Feel free to dm I’ll send you a link.
Thank you, glad you enjoy it!
Yes, it has standalone command support, and item use should work through ox inventory, or the esx server-side code.
1 Like
please make for esx i would die for this 
1 Like
It should work fine for esx!
Killstore if I remember right.
1 Like
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.
ramasez
18
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.
Pushed an update for the menu sorting. Thanks for letting me know.
1 Like
Karle1
20
How do I get the hair on the sides of the head is not like that with me or where do you find that?