Hi good to see you again 🖐️, I am here with a new release for you guys but before i start let me thank two people:
@dividerz, thank you for the help with a small part of the code mate 😉.
@M0SK4 Thank you for the help with the script tests💻.
[📕]About the job: you have two mining zones, one is for stones and the other is for rocks (in the mine shaft location) when the rocks value is the higher then the stones. You have to get 15 stones / rocks to smelt them and then go to sell a pack of your smelted stones / rocks.
[📕]Script Features:
- Mining effect - when hitting a stone / rock.
- The mine shaft in open until the night(23:00).
- You need to have a pickaxe as an item to be able to mine.
- sound when hitting a stone / rock.
- Coming soon - HP losing in the mine shaft while mining. If you have any ideas you can suggest here!.
[📕]Script Settings: Config.Lua - > will give you the option to switch between the old esx to the new one (esx legacy). If you are using the esx legacy version please set the config to false and do the following thing: Go to -> fxmanifest.lua - > then go to -> shared_scripts and then add this line -> '@es_extended/imports.lua' under -> 'main/config.lua'.
For the other things that you can do i left for you in the client side and the server side, several guidance instructions that can help you. If you still have any problems leave me a message.
[📕]Script Dependencies: I placed over the mine shaft some stones props by codewalker so you need to download the ymap file from here:
https://github.com/ArielZ123/Rocks
📣Sound system: You need (Interact Sound) due to the sound effect:
You can use the sound file from the sound folder, and if you have a different sound system so go and do it as your system.
> ❗️DONT FORGET TO LOAD THE ITEMS TO YOUR DB, PLEASE ADD YOUR DB NAME HERE: USE DBNAME
; IN THE SQL FILE❗️.
Pictures from the job: https://cdn.discordapp.com/attachments/972536964022677534/1032750188852420718/Screenshot_125.png https://media.discordapp.net/attachments/972536964022677534/1032750267319459891/unknown.png?width=1202&height=676 https://cdn.discordapp.com/attachments/972536964022677534/1032750289444421703/unknown.png https://media.discordapp.net/attachments/972536964022677534/1032750289855467571/unknown.png?width=1202&height=676 https://media.discordapp.net/attachments/972536964022677534/1032750290681729115/unknown.png?width=1202&height=676
[📕]Script Preview: https://www.youtube.com/watch?v=149C9pWK_F8
[⚙️]Script Optimization Pictures: Ms when you are far from the markers of the job: https://media.discordapp.net/attachments/972536964022677534/1032745929339584624/unknown.png
Ms when you are inside the markers of the job: https://media.discordapp.net/attachments/972536964022677534/1032746023795294218/unknown.png
[🔎]qbcore version: Soon...📏
[📕]In conclusion: I am trying my best its really hard to keep while army serving but i want to go in the same way and share with the community my scripts. If you find any problems or want to help me to improve something let me know, and stay tuned for updates for this script as i told at the beginning.
See you until next time 👋