Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

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

Anonymouse

Gold Elite
Joined
Aug 12, 2021
Messages
136
Reaction score
2,204
Points
316
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!
 

Attachments

  • core_crafting.zip
    46.1 KB · Views: 4,088
Last edited:

Anonymouse

Gold Elite
Joined
Aug 12, 2021
Messages
136
Reaction score
2,204
Points
316
387 Client for _, v in ipairs(Config.AttachmentStores) do
406 Clinet for _, v in ipairs(Config.AttachmentStores) do
I need a screen shot to see wats going on,

Screenshot of your F8 Error

And screen shot from the line code.
 

liamhoffmann

Member
Joined
Dec 22, 2021
Messages
1
Reaction score
0
Points
161
Location
unknown
@core_crafting/server/main.lua:83: attempt to index a nil value (local 'result')
getting this error any help
 

filipesantos

Member
Joined
Dec 13, 2021
Messages
2
Reaction score
0
Points
156
Location
Portugal
1640246082657.png
 

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
When trying to run the sql
#1049 - Unknown database 'qbus'
guess its not qbcore compatible.
 

Spaltersar

Bronze Elite
Joined
Jul 28, 2021
Messages
10
Reaction score
6
Points
166
that still is a no go lol
you dont understand it seems.

you dont have to rename your database. just edit the sql file and replace the database name entry there (qbus) with the name of your database. Deleting the whole entry might work too.
 

falcon164

Bronze Elite
Joined
Oct 26, 2021
Messages
13
Solutions
1
Reaction score
9
Points
166
Location
South Carolina
This is the sql file included below:

USE `qbus`;

ALTER TABLE `players` ADD `crafting_level` INT NOT NULL AFTER `pets`;

you can just change where it says " `qbus` " to your DB name or just do what I did which is just go into your "players" table within your DB and add a new column call it crafting_level select data type "int" and uncheck "allow null" . The script is just looking for this crafting_level column within the players table to log and retrieve the crafting level of the player so it knows which items to present to that player.

P.S. not sure why null keeps getting blurred out
 
Last edited:

Anonymouse

Gold Elite
Joined
Aug 12, 2021
Messages
136
Reaction score
2,204
Points
316
This is the sql file included below:

USE `qbus`;

ALTER TABLE `players` ADD `crafting_level` INT NOT n**l AFTER `pets`;

you can just change where it says " `qbus` " to your DB name or just do what I did which is just go into your "players" table within your DB and add a new column call it crafting_level select data type "int" and uncheck "allow n**l" . The script is just looking for this crafting_level column within the players table to log and retrieve the crafting level of the player so it knows which items to present to that player.

P.S. not sure why n**l keeps getting blurred out
Indeed thats an easy fix. If your understand wat you are doing then its easy but allot of people dont know wat they are doing.
 

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
Yup
Did all that still errors, and some of us now how to edit the tables and columns.
 

falcon164

Bronze Elite
Joined
Oct 26, 2021
Messages
13
Solutions
1
Reaction score
9
Points
166
Location
South Carolina
.
1641164206274.png
Remove this from server main and client main and add this
" local QBCore = exports['qb-core']:GetCoreObject() " I forgot It was setup for the older method of importing qb. Assuming you are on a newer version of QB that is probably the issue.
 

CreatingTension

Silver Elite
Joined
Dec 10, 2021
Messages
34
Reaction score
9
Points
166
Location
29379
. View attachment 4042 Remove this from server main and client main and add this
" local QBCore = exports['qb-core']:GetCoreObject() " I forgot It was setup for the older method of importing qb. Assuming you are on a newer version of QB that is probably the issue.
Yea im running the newest I'll give this a go too thnx
 

Anonymouse

Gold Elite
Joined
Aug 12, 2021
Messages
136
Reaction score
2,204
Points
316
. View attachment 4042 Remove this from server main and client main and add this
" local QBCore = exports['qb-core']:GetCoreObject() " I forgot It was setup for the older method of importing qb. Assuming you are on a newer version of QB that is probably the issue.
I forgot to set it i will try to update the core crafting for newer version. Any chance you can help ?
 

Anonymouse

Gold Elite
Joined
Aug 12, 2021
Messages
136
Reaction score
2,204
Points
316
How to used the blueprint?or how to attached the blueprint on the config?
I will re-upload soon a new one so its easier to see wat to do and wat you can do. expect the upload arround 23:59 on EU time today!
 
Top