What's new

Script Core Crafting - QBCore - Working (Outdated) (In comments below are fixes!)

subhamproo

Member
Joined
Apr 28, 2022
Messages
1
Reaction score
0
Points
156
Location
INDIA
everytime someone quit server and rejoin : Press E to open workbench option disapper ! Need to ensure script to come the E option
 

Galaxyy22

Bronze Elite
Joined
May 22, 2022
Messages
11
Reaction score
2
Points
166
Location
England
Make sure configure to your liking!

Reason why i re-upload.

Got allot of people comming to me that it isnt working.
I fixed the issues you can happly configure to your liking!

if any errors let me know!

Good luck !

Updated with happy thanks to Falcon164 !

https://vag.gg/members/falcon164.41721/ Thank you my man!


I am going to work on the animations!


Video Made By Me.


Updated! 27-12-2021

-- Cords + Infomation
This code can be find in core_crafting/config

Workbenches = { -- Every workbench location, leave {} for jobs if you want everybody to access

{coords = vector3(-196.3735,-1318.485,32.08951), jobs = 'mechanic', Categories = 'MechCategories', blip = false, recipes = {}, radius = 3.0 }, --bennys 1
{coords = vector3(101.26113891602,6615.810546875,33.58126831054), jobs = 'mechanic', Categories = 'MechCategories', blip = false, recipes = {}, radius = 3.0 }, --North LS customs
{coords = vector3(89.03208,3744.193,41.7729), jobs = {}, Categories = 'GunCategories', blip = false, recipes = {}, radius = 3.0 }, --Gun crafting 1
{coords = vector3(164.9575,-1323.114,26.81208), jobs = {}, Categories = 'GunCategories', blip = false, recipes = {}, radius = 3.0} --Gun crafting 2

},

-- its in the script. But for peo
Make sure configure to your liking!

Reason why i re-upload.

Got allot of people comming to me that it isnt working.
I fixed the issues you can happly configure to your liking!

if any errors let me know!

Good luck !

Updated with happy thanks to Falcon164 !

https://vag.gg/members/falcon164.41721/ Thank you my man!


I am going to work on the animations!


Video Made By Me.


Updated! 27-12-2021

-- Cords + Infomation
This code can be find in core_crafting/config

Workbenches = { -- Every workbench location, leave {} for jobs if you want everybody to access

{coords = vector3(-196.3735,-1318.485,32.08951), jobs = 'mechanic', Categories = 'MechCategories', blip = false, recipes = {}, radius = 3.0 }, --bennys 1
{coords = vector3(101.26113891602,6615.810546875,33.58126831054), jobs = 'mechanic', Categories = 'MechCategories', blip = false, recipes = {}, radius = 3.0 }, --North LS customs
{coords = vector3(89.03208,3744.193,41.7729), jobs = {}, Categories = 'GunCategories', blip = false, recipes = {}, radius = 3.0 }, --Gun crafting 1
{coords = vector3(164.9575,-1323.114,26.81208), jobs = {}, Categories = 'GunCategories', blip = false, recipes = {}, radius = 3.0} --Gun crafting 2

},

-- its in the script. But for people who wanna know the easy way

Workbench

first one, use command /tp -196.3735 -1318.485 32.08951 , Then use command /Setjob ID mechanic 1 , And test it out.
second one, Use command /tp 101.26113891602 6615.810546875 33.58126831054 , Then use command /Setjob ID mechanic 1 , And test it out.
Thirsty one, Use command /tp 89.03208 3744.193 41.7729 , And your good no job needed.
Fourthy one, Use command /tp 164.9575 -1323.114 26.81208 , And your good no job needed. <-- this one is placed underground!

You also can activate blips, by Replacing " blip = false," to " blip = true,"

Have a great chrismass!
goof
ple who wanna know the easy way

Workbench

first one, use command /tp -196.3735 -1318.485 32.08951 , Then use command /Setjob ID mechanic 1 , And test it out.
second one, Use command /tp 101.26113891602 6615.810546875 33.58126831054 , Then use command /Setjob ID mechanic 1 , And test it out.
Thirsty one, Use command /tp 89.03208 3744.193 41.7729 , And your good no job needed.
Fourthy one, Use command /tp 164.9575 -1323.114 26.81208 , And your good no job needed. <-- this one is placed underground!

You also can activate blips, by Replacing " blip = false," to " blip = true,"

Have a great chrismass!
 

spxrcks

Bronze Elite
Joined
Jun 6, 2022
Messages
27
Reaction score
2
Points
156
Location
Australia
Make sure configure to your liking!

Reason why i re-upload.

Got allot of people comming to me that it isnt working.
I fixed the issues you can happly configure to your liking!

if any errors let me know!

Good luck !

Updated with happy thanks to Falcon164 !

https://vag.gg/members/falcon164.41721/ Thank you my man!


I am going to work on the animations!


Video Made By Me.


Updated! 27-12-2021

-- Cords + Infomation
This code can be find in core_crafting/config

Workbenches = { -- Every workbench location, leave {} for jobs if you want everybody to access

{coords = vector3(-196.3735,-1318.485,32.08951), jobs = 'mechanic', Categories = 'MechCategories', blip = false, recipes = {}, radius = 3.0 }, --bennys 1
{coords = vector3(101.26113891602,6615.810546875,33.58126831054), jobs = 'mechanic', Categories = 'MechCategories', blip = false, recipes = {}, radius = 3.0 }, --North LS customs
{coords = vector3(89.03208,3744.193,41.7729), jobs = {}, Categories = 'GunCategories', blip = false, recipes = {}, radius = 3.0 }, --Gun crafting 1
{coords = vector3(164.9575,-1323.114,26.81208), jobs = {}, Categories = 'GunCategories', blip = false, recipes = {}, radius = 3.0} --Gun crafting 2

},

-- its in the script. But for people who wanna know the easy way

Workbench

first one, use command /tp -196.3735 -1318.485 32.08951 , Then use command /Setjob ID mechanic 1 , And test it out.
second one, Use command /tp 101.26113891602 6615.810546875 33.58126831054 , Then use command /Setjob ID mechanic 1 , And test it out.
Thirsty one, Use command /tp 89.03208 3744.193 41.7729 , And your good no job needed.
Fourthy one, Use command /tp 164.9575 -1323.114 26.81208 , And your good no job needed. <-- this one is placed underground!

You also can activate blips, by Replacing " blip = false," to " blip = true,"

Have a great chrismass!
How do I make it so some crafting benches only have certain items and other ones have different ones?
 

Las7ManLas7Man

Bronze Elite
Joined
Feb 20, 2022
Messages
7
Reaction score
3
Points
156
Location
salata
everytime someone quit server and rejoin : Press E to open workbench option disapper ! Need to ensure script to come the E option
comment this !

local labels = {}
local craftingQueue = {}
--local job = ""
local grade = 0

-- while QBCore.Functions.GetPlayerData().job == nil do
-- Citizen.Wait(10)
-- end
-- job = QBCore.Functions.GetPlayerData().job.name
-- grade = QBCore.Functions.GetPlayerData().job.grade
-- QBCore.Functions.TriggerCallback("core_crafting:getItemNames", function(info) labels = info end)
-- for _, v in ipairs(Config.Workbenches) do
-- if v.blip then
-- local blip = AddBlipForCoord(v.coords)
-- SetBlipSprite(blip, Config.BlipSprite)
-- SetBlipScale(blip, 0.8)
-- SetBlipColour(blip, Config.BlipColor)
-- SetBlipAsShortRange(blip, true)
-- BeginTextCommandSetBlipName("STRING")
-- AddTextComponentString(Config.BlipText)
-- EndTextCommandSetBlipName(blip)
-- end
-- end


-- RegisterNetEvent('QBCore:Client:OnJobUpdate')
-- AddEventHandler('QBCore:Client:OnJobUpdate', function(JobInfo)
-- job = JobInfo.name
-- grade = JobInfo.grade
-- end)

----------------------AND PUT THIS

QBCore.Functions.TriggerCallback("core_crafting:getItemNames", function(info) labels = info end)
for _, v in ipairs(Config.Workbenches) do
if v.blip then
local blip = AddBlipForCoord(v.coords)
SetBlipSprite(blip, Config.BlipSprite)
SetBlipScale(blip, 0.8)
SetBlipColour(blip, Config.BlipColor)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(Config.BlipText)
EndTextCommandSetBlipName(blip)
end
end
 
Last edited:
Top