[FREE] [ESX] [OX_LIB] esx_GlassHeroes

glassheroes_gif

esx_GlassHeroes

esx_GlassHeroes is a straight-forward mechanic script that lets you pay an NPC mechanic to repair your vehicle. It is based on ox_lib and therefore, the interface and functionalities are easy to grasp and user friendly.

:fast_forward:DOWNLOAD

Features

  • NPC based car repair: Players can interact with an NPC and pay them to repair your car.

  • Dynamic price calculation: Price for reparation will get calculated based on vehicle damage.

  • ESX integration: For the management of the player’s money.

  • ox_lib integration: For an appealing and elegant UI.

  • ox_target integration: To interact with the NPC.

  • Customizable: Config file to tweak prices and repair times to your liking and add new mechanics to the map.

Requirements

Discord

Join now!

Video Showcase

Showcase

Pictures

glassheroes

glassheroes2

glassheroes3

5000cost

glassheroes4

7 Likes

Works perfect. No errors till now found. Good job :ok_hand:

1 Like

Could you add a feature where the NPC can only be used if there are no Player Mechanics online?

1 Like

Thank you for your suggestion, I’m going to add this feature. Keep an eye out on the GitHub to not miss it.

1 Like

nice work … but no way to add more than one NPC in the city

1 Like

I’m gonna add that, thank you for your suggestion.

1 Like

Dev log (v1.1)

Added feature:

  • The NPC will give you an error message if there is a certain amount of mechanics online. This feature can be turned on/off in the config.lua, and the amount of mechanics needed to give an error can also be changed.

Check GitHub for the new version.

@Kings_wehby Unfortunately I could not take your suggestion into account, because I coded the script in a way which makes it impossible to add multiple peds. I would have to rewrite everything. I might do that sometime else.

i tried to modify iy to make multi npcs but the npc will freeze in his place and i don’t have errors so the only way to double the script to make it work in two different places
any way thank you

1 Like

It worked perfectly.

Then I changed the Notify and the Progressbar and since then I get the error

1 Like

Could you please show me what exactly you have changed in the code?

I have found the issue, and I resolved it. Check the new version on GitHub.

Now I do not get an error but he does not repair the vehicle

1 Like

Could you please show the code you have changed? Either write it here or add me on dc (gpochico)

1 Like

Can i add more npcs?

1 Like

Sorry, that does not work as of right now

Dev log (v1.2)

Cleaned up code:

  • The code has been optimized to be more lightweight for better performance (max 0.01ms CPU usage)
  • Cleaned up >100 lines of code

Added ox_target integration

  • Now uses ox_target integration to talk to the NPC for better performance

Check GitHub for the new version.

I dont know why, but the NPC is streamed twice…

And sometimes ox option is just visible for some guys, and some dont get the option.

Cheers in advance!

1 Like

Thank you, I will take a look soon.

Any chance, you had a look at it? :slight_smile:

1 Like

I am really busy, so I couldn’t spend too much time on it. I haven’t found the solution yet