MOXHA
1
Hi again, I wanted to share a script I made a long time ago in cfx site. I hope that’s ok…
If I need to give information about the script:
- It provides an easy way to craft items.
- A maximum of 4 items may be required for an item. [It could be from 1 to 4.]
- Craft can be done in one place.
- While crafting, a processing bar comes out.
VERSION 2.0 !
- About the 2.0 update in Craft system:
- You can now add as many req items as you want.
- You can create as many craft locations as you want.
- You can add or remove job requirements to craft.
- You can adjust the animations in config.
Req: GitHub - HalCroves/mythic_progbar: FiveM Client-sided Progress Bar
Github link: GitHub - MOXHAFOREVA/mx-crafting
Showcase [OLD]: mx-crafting
2.0 Showcase: https://www.youtube.com/watch?v=rkso3u9fU8c
The video may be in another language. But the script is in English language.
Enjoy.
4 Likes
To be honest, just on idle this should be sat at 0.01/0 if anything.
How would it sit at 0 lol
1 Like
Those errors in your f8 are due to not using a prop.
Can replace:
RegisterNetEvent("mythic_progbar:client:actionCleanup")
AddEventHandler("mythic_progbar:client:actionCleanup", function()
local ped = PlayerPedId()
ClearPedTasks(ped)
StopAnimTask(ped, mythic_action.animDict, mythic_action.anim, 1.0)
DetachEntity(NetToObj(prop_net), 1, 1)
DeleteEntity(NetToObj(prop_net))
prop_net = nil
end)
With:
RegisterNetEvent("mythic_progbar:client:actionCleanup")
AddEventHandler("mythic_progbar:client:actionCleanup", function()
local ped = PlayerPedId()
ClearPedTasks(ped)
StopAnimTask(ped, mythic_action.animDict, mythic_action.anim, 1.0)
if isProp then
DetachEntity(NetToObj(prop_net), 1, 1)
DeleteEntity(NetToObj(prop_net))
prop_net = nil
end
end)
MOXHA
5
The resmon value change depending on the power of the computer.
My computer: 6950 radeon graphic card 8gb ram xD And Impossible to be 0.0. Using a 1 while loop is doing 0.1 anyway.
MOXHA
6
Thanks for the information.
can you make it more than one location?
how to set the ingredient item with money, so the people pay it for crafting ?