Script OkOk Crafting (crafting script)

1 Followed
283 Follower

Adrian_chupi

Admin

Aug 13, 2023

3,085 Mesaj

8,182 Reaction

0 Solution

113

First Message

100 Messages

500 Message

1K Message

No reward!

Joined
Aug 13, 2023
Messages
3,085
Reaction score
8,182
Points
113
Location
SPAIN
Credits
1,727

Execute the following SQL code in your database:​

In case you had the previous okokCrafting version (both ESX & QBCore) execute the code below, otherwise ignore it.

ALTER TABLE users DROP COLUMN xp;

ESX

ALTER TABLE users ADD COLUMN xp LONGTEXT NULL;

ALTER TABLE users ADD COLUMN okokcrafts LONGTEXT NULL;

QBCore

ALTER TABLE players ADD COLUMN xp LONGTEXT NULL;

ALTER TABLE players ADD COLUMN okokcrafts LONGTEXT NULL;

Important​

The tableID field on the config file is used to create the crafting buttons, so make sure you ALWAYS set a different ID for each table.

Adding images to the items​

To add images to the items simply drop them in okokCrafting/web/icons.
    • The images should be in the PNG format;
    • The image name should be the same as the item ID, if the item ID is "bread", then the image should be "bread.png".

 

nicola20

Uye

Dec 29, 2023

1 Mesaj

0 Reaction

0 Solution

1

First Message

No reward!

No reward!

No reward!

No reward!

Joined
Dec 29, 2023
Messages
1
Reaction score
0
Points
1
Location
barlad
Credits
0

Execute the following SQL code in your database:​

In case you had the previous okokCrafting version (both ESX & QBCore) execute the code below, otherwise ignore it.

ALTER TABLE users DROP COLUMN xp;

ESX

ALTER TABLE users ADD COLUMN xp LONGTEXT NULL;

ALTER TABLE users ADD COLUMN okokcrafts LONGTEXT NULL;

QBCore

ALTER TABLE players ADD COLUMN xp LONGTEXT NULL;

ALTER TABLE players ADD COLUMN okokcrafts LONGTEXT NULL;

Important​

The tableID field on the config file is used to create the crafting buttons, so make sure you ALWAYS set a different ID for each table.

Adding images to the items​

To add images to the items simply drop them in okokCrafting/web/icons.
    • The images should be in the PNG format;
    • The image name should be the same as the item ID, if the item ID is "bread", then the image should be "bread.png".

wow
 

Topics

5,143

Messages

8,728

Members

49,994

Latest member

aijungx

Top