#Add mz-skills

1 messages · Page 1 of 1 (latest)

tough island
#

i am using mz-skills and i am not sure where to add the exports i need help ty

onyx osprey
#

Everywhere where PlayerData.metadata.craftingrep is used and everywhere where
Player.Functions.SetMetaData('craftingrep', newSkill) is used you'll need to change accordingly

#

you shouldnt really need to change it tho, since Crafting has its own system

tough island
#

can you show example or something just 1 that code

onyx osprey
#

Just search for those things

#

If you don't know how, you might wanna just use the base crafting skill sytem that this script comes with instead

tough island
onyx osprey
#

Maybe? If that replaces the functionality

tough island
#

i didnt changed anything

onyx osprey
#

benches need a objects = {} in them. Seems like the check for this didn't get pushed.

tough island
#

i think i have it

onyx osprey
#

Not on the last one

#

There should just be a check for it before doing the loop over it in the code, but for some reason that seems to have gone lost with an update or something

tough island
#

okey then let me jjust add guns object

onyx osprey
#

shows in the top

spice scroll
#

@onyx osprey how much of a pain would it be to add a config option for MZ

#

i could see that being useful as even we used that in Sundown

onyx osprey
#

It's totally useless

#

Crafting has it's own skill system

#

Theres 0 need for mz skills

#

The only real annoyance about using the stock "skill" system i that it doesn't have the nice calls to update skill.
Crafting already does all that behind the scenes so it's already implemented

#

Other than "having all skill in the same spot" theres no need for another skill system here

spice scroll
#

i mean that was the thought xD but fair enough. easy enough for user implimentation if desired

#

like how we used MZ skills, it woulda been more of a hassle to try and pull a seperate thing than just all at once was my thought. admin purposes and stuff

onyx osprey
#

For sure, but that could be said for any skill system then

#

not just mz

#

Not really worth the time to add extra optionals when the existing system needs nothing to work.
Already regret having renewed banking shit in racingapp cause the extra code takes up like half the functions LuL

spice scroll
#

haha

#

tbf i just looked it over, if people really wanted Mz-skills, its like 5 lines to change. its not that difficult

#

got like 2 in the server file, and a few spots in client.

onyx osprey
#

Yeah the spots i mentioned in the beginning right?

spice scroll
#

the pull for crafting rep in client

#

and then

#

setting the skill in Server,

#

but due to how MZ does it, chances are youd be setting skill in client instead so i think it would require a function

onyx osprey
#

So it'd require an additional event call then

#

Thanks for checking. Now I know I deffo wont be adding that support kek

spice scroll
#

i believe so yeah since MZ handles all skills client side

#

as i said, its easy enough if users wanna do it, i could throw it together in 5 minutes shrug

onyx osprey
#

Did not think I'd see base QBs being better

#

since this means less calls back-and-fourth

#

also I think metadata has another up and that is that it's synced every x time, not on call iirc?

#

So instead of doing constant DB calls it syncs every like x minute or wahtever

spice scroll
#

not sure on that one

#

tbf something ive always wanted to do was move MZ stuff to server side

#

i never saw a reason it was done client aside from to maybe reduce load

onyx osprey
#

It's basic af

#

I know I've said I'd make a skill system many times

spice scroll
#

lets see it,

#

with all the resources ya got made, you can link em all nicely 😛

onyx osprey
#

That's the issue. I'd have to add it everywhere!

spice scroll
#

i mean, once you got the base system made it would just be adding a few exports in the other resources

tough island
onyx osprey
#

Yes but only if you know how to code in Vue

tough island
#

idk can you help me

onyx osprey
#

There's a link far down in the readme, in the section about changing the look.

You'll need an understanding in NPM, Typescript and VUE.

I don't have time to go over the process and guide you. You're on your own for this one ✌️

If it's too much you can always strike up a convo to comission this feature if you think it's really worth it.

tough island
#

last 1 thing

#

how can i show crafting menu in my browser