This commit is contained in:
Max 2025-06-15 03:45:26 +02:00
commit 7994e4a2d8
21 changed files with 3385 additions and 3328 deletions

View file

@ -79,6 +79,63 @@ Config = {
hunger = 10, hunger = 10,
} }
}, },
["tosti"] = {
PropModel = "prop_sandwich_01",
UsesAmount = 1, -- The Amount Of Times This Item Can Be Eaten / Drinked
Actions = {
Enter = { -- I Won't Recomenned Replacing The Animation Because Stuff Related To This Are Hardcoded (Will Be Support For Customs Soon)
Animation = {
Dict = "amb@world_human_stand_mobile@male@text@enter",
Anim = "enter",
flag = 49,
Speed = 1.0, -- Between 1.0 to 0.0
},
Attachment = {
Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 },
}
},
Hold = {
Animation = {
Dict = "mp_player_inteat@burger",
Anim = "mp_player_int_eat_burger",
flag = 49,
Speed = 0.0, -- Between 1.0 to 0.0
},
Attachment = {
Bone = 18905,
Coords = { x = 0.13, y = 0.05, z = 0.02, xR = 120.0, yR = 16.0, zR = 60.0 },
},
},
Use = {
Animation = {
Dict = "mp_player_inteat@burger",
Anim = "mp_player_int_eat_burger",
flag = 49,
Speed = 1.0, -- Between 1.0 to 0.0
},
Attachment = {
Bone = 18905,
Coords = { x = 0.13, y = 0.05, z = 0.02, xR = 120.0, yR = 16.0, zR = 60.0 },
},
},
Exit = { -- I Won't Recomenned Replacing The Animation Because Stuff Related To This Are Hardcoded (Will Be Support For Customs Soon)
Animation = {
Dict = "amb@world_human_stand_mobile@male@text@exit",
Anim = "exit",
flag = 49,
Speed = 1.0, -- Between 1.0 to 0.0
},
Attachment = {
Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 },
}
},
},
Rewards = { -- The Reward Will Set Metadata And Will Be Set When Item Is Used (When Drinked Or Eaten Once)
hunger = 10,
}
},
["twerks_candy"] = { ["twerks_candy"] = {
PropModel = "prop_choc_ego", PropModel = "prop_choc_ego",
UsesAmount = 1, -- The Amount Of Times This Item Can Be Eaten / Drinked UsesAmount = 1, -- The Amount Of Times This Item Can Be Eaten / Drinked
@ -1897,7 +1954,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 18905, Bone = 18905,
Coords = { x = 0.13, y = 0.07, z = 0.02, xR = 120.0, yR = 16.0, zR = 60.0 }, Coords = { x = 0.13, y = 0.07, z = 0.02, xR = 60.0, yR = 16.0, zR = 60.0 },
}, },
}, },
Use = { Use = {
@ -2044,7 +2101,7 @@ Config = {
} }
}, },
["lahmacun"] = { ["lahmacun"] = {
PropModel = "prop_taco_01", PropModel = "bzzz_food_burrito_a",
UsesAmount = 2, -- The Amount Of Times This Item Can Be Eaten / Drinked UsesAmount = 2, -- The Amount Of Times This Item Can Be Eaten / Drinked
Actions = { Actions = {
Enter = { -- I Won't Recomenned Replacing The Animation Because Stuff Related To This Are Hardcoded (Will Be Support For Customs Soon) Enter = { -- I Won't Recomenned Replacing The Animation Because Stuff Related To This Are Hardcoded (Will Be Support For Customs Soon)
@ -2124,20 +2181,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -2238,20 +2295,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -2295,20 +2352,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -3526,7 +3583,7 @@ Config = {
} }
}, },
["dins_isdom_latter"] = { ["dins_isdom_latter"] = {
PropModel = "prop_cs_plate_01", PropModel = "prop_cs_plate_01",
UsesAmount = 2, UsesAmount = 2,
Actions = { Actions = {
Enter = { Enter = {
@ -3549,20 +3606,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -3583,7 +3640,7 @@ Config = {
} }
}, },
["ifs_olden_arvest"] = { ["ifs_olden_arvest"] = {
PropModel = "prop_cs_plate_01", PropModel = "prop_cs_plate_01",
UsesAmount = 2, UsesAmount = 2,
Actions = { Actions = {
Enter = { Enter = {
@ -3606,20 +3663,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -3641,7 +3698,7 @@ Config = {
}, },
["jords_ea_latter"] = { ["jords_ea_latter"] = {
PropModel = "prop_cs_plate_01", PropModel = "prop_cs_plate_01",
UsesAmount = 2, UsesAmount = 2,
Actions = { Actions = {
Enter = { Enter = {
@ -3664,20 +3721,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -3699,7 +3756,7 @@ Config = {
}, },
["kadis_inter_kewers"] = { ["kadis_inter_kewers"] = {
PropModel = "prop_cs_plate_01", PropModel = "prop_cs_plate_01",
UsesAmount = 2, UsesAmount = 2,
Actions = { Actions = {
Enter = { Enter = {
@ -3722,20 +3779,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -3780,20 +3837,20 @@ Config = {
Speed = 0.0, Speed = 0.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
Animation = { Animation = {
Dict = "anim@scripted@island@special_peds@pavel@hs4_pavel_ig5_caviar_p1", Dict = "bzzz@restaurant@eat",
Anim = "base_idle", Anim = "bzzz_restaurant_eat",
flag = 49, flag = 49,
Speed = 1.0, Speed = 1.0,
}, },
Attachment = { Attachment = {
Bone = 60309, Bone = 18905,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.08, y = -0.04, z = 0.07, xR = -30.0, yR = 10.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -6808,7 +6865,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
} }
}, },
Hold = { Hold = {
@ -6819,7 +6876,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
@ -6831,7 +6888,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.12, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -6843,7 +6900,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
} }
}, },
Throw = { Throw = {
@ -7760,7 +7817,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.6, xR = 0.0, yR = 0.0, zR = 0.0 },
} }
}, },
Hold = { Hold = {
@ -7771,7 +7828,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.6, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
@ -7783,7 +7840,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.4, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -7795,7 +7852,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.10, xR = 0.0, yR = 0.0, zR = 0.0 },
} }
}, },
Throw = { Throw = {
@ -7807,12 +7864,12 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = 0.0, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.10, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
} }
}, },
Rewards = { Rewards = {
thirst = 20, thirst = 10,
} }
}, },
["sifs_golden-ale"] = { ["sifs_golden-ale"] = {
@ -8904,8 +8961,8 @@ Config = {
} }
}, },
["wine"] = { ["wine"] = {
PropModel = "prop_wine_rose", PropModel = "p_wine_glass_s",
UsesAmount = 4, UsesAmount = 2,
Actions = { Actions = {
Enter = { Enter = {
Animation = { Animation = {
@ -8916,7 +8973,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
} }
}, },
Hold = { Hold = {
@ -8927,7 +8984,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
@ -8939,7 +8996,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.12, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {
@ -8972,8 +9029,8 @@ Config = {
} }
}, },
["wwine"] = { ["wwine"] = {
PropModel = "prop_wine_white", PropModel = "p_wine_glass_s",
UsesAmount = 4, UsesAmount = 2,
Actions = { Actions = {
Enter = { Enter = {
Animation = { Animation = {
@ -8984,7 +9041,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
} }
}, },
Hold = { Hold = {
@ -8995,7 +9052,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.20, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Use = { Use = {
@ -9007,7 +9064,7 @@ Config = {
}, },
Attachment = { Attachment = {
Bone = 28422, Bone = 28422,
Coords = { x = 0.0, y = 0.0, z = -0.07, xR = 0.0, yR = 0.0, zR = 0.0 }, Coords = { x = 0.0, y = 0.0, z = -0.12, xR = 0.0, yR = 0.0, zR = 0.0 },
}, },
}, },
Exit = { Exit = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

View file

@ -1,7 +1,7 @@
Hi, thank you for buying okokCrafting! :) Hi, thank you for buying okokCrafting! :)
If you need help contact me on discord: okok#3488 If you need help contact me on discord: okok#3488
Discord server: https://discord.gg/okok Discord server: https://discord.gg/okok
Docs: https://docs.okokscripts.io/ Docs: https://docs.okokscripts.io/
-> Installation Guide: https://docs.okokscripts.io/scripts/okokcrafting -> Installation Guide: https://docs.okokscripts.io/scripts/okokcrafting

View file

@ -1,249 +1,249 @@
QBCore = exports[Config.qbPrefix.."-core"]:GetCoreObject() QBCore = exports[Config.qbPrefix.."-core"]:GetCoreObject()
RegisterNetEvent(Config.EventPrefix..":notification") RegisterNetEvent(Config.EventPrefix..":notification")
AddEventHandler(Config.EventPrefix..":notification", function(title, text, time, type) AddEventHandler(Config.EventPrefix..":notification", function(title, text, time, type)
exports['okokNotify']:Alert(title, text, time, type) exports['okokNotify']:Alert(title, text, time, type)
end) end)
RegisterNetEvent(Config.EventPrefix..":openTextUI") RegisterNetEvent(Config.EventPrefix..":openTextUI")
AddEventHandler(Config.EventPrefix..":openTextUI", function(text) AddEventHandler(Config.EventPrefix..":openTextUI", function(text)
exports['qb-core']:DrawText(text, 'left') exports['qb-core']:DrawText(text, 'left')
end) end)
RegisterNetEvent(Config.EventPrefix..":closeTextUI") RegisterNetEvent(Config.EventPrefix..":closeTextUI")
AddEventHandler(Config.EventPrefix..":closeTextUI", function() AddEventHandler(Config.EventPrefix..":closeTextUI", function()
exports['qb-core']:HideText() exports['qb-core']:HideText()
end) end)
function onOpenMenu() function onOpenMenu()
-- Executed when the menu is opened -- Executed when the menu is opened
end end
function onCloseMenu() function onCloseMenu()
-- Executed when the menu is closed -- Executed when the menu is closed
end end
function claimAll(workbench, CraftQueues) function claimAll(workbench, CraftQueues)
TriggerServerEvent(Config.EventPrefix..':claimAll', workbench, CraftQueues) TriggerServerEvent(Config.EventPrefix..':claimAll', workbench, CraftQueues)
end end
Citizen.CreateThread(function() Citizen.CreateThread(function()
if Config.UseXP then if Config.UseXP then
if Config.SameLevelForAllTables then if Config.SameLevelForAllTables then
TriggerEvent('chat:addSuggestion', '/'..Config.SetXPCommand, _L('suggestion_xp').maintext, { TriggerEvent('chat:addSuggestion', '/'..Config.SetXPCommand, _L('suggestion_xp').maintext, {
{ name=_L('suggestion_xp').id, help=_L('suggestion_xp').idtext }, { name=_L('suggestion_xp').id, help=_L('suggestion_xp').idtext },
{ name=_L('suggestion_xp').xp, help=_L('suggestion_xp').xptext }, { name=_L('suggestion_xp').xp, help=_L('suggestion_xp').xptext },
}) })
TriggerEvent('chat:addSuggestion', '/'..Config.SetLevelCommand, _L('suggestion_level').maintext, { TriggerEvent('chat:addSuggestion', '/'..Config.SetLevelCommand, _L('suggestion_level').maintext, {
{ name=_L('suggestion_level').id, help=_L('suggestion_level').idtext }, { name=_L('suggestion_level').id, help=_L('suggestion_level').idtext },
{ name=_L('suggestion_level').level, help=_L('suggestion_level').leveltext }, { name=_L('suggestion_level').level, help=_L('suggestion_level').leveltext },
}) })
else else
TriggerEvent('chat:addSuggestion', '/'..Config.SetXPCommand, _L('suggestion_xp').maintext, { TriggerEvent('chat:addSuggestion', '/'..Config.SetXPCommand, _L('suggestion_xp').maintext, {
{ name=_L('suggestion_xp').id, help=_L('suggestion_xp').idtext }, { name=_L('suggestion_xp').id, help=_L('suggestion_xp').idtext },
{ name=_L('suggestion_xp').xp, help=_L('suggestion_xp').xptext }, { name=_L('suggestion_xp').xp, help=_L('suggestion_xp').xptext },
{ name=_L('suggestion_xp').workbench, help=_L('suggestion_xp').workbenchtext }, { name=_L('suggestion_xp').workbench, help=_L('suggestion_xp').workbenchtext },
}) })
TriggerEvent('chat:addSuggestion', '/'..Config.SetLevelCommand, _L('suggestion_level').maintext, { TriggerEvent('chat:addSuggestion', '/'..Config.SetLevelCommand, _L('suggestion_level').maintext, {
{ name=_L('suggestion_level').id, help=_L('suggestion_level').idtext }, { name=_L('suggestion_level').id, help=_L('suggestion_level').idtext },
{ name=_L('suggestion_level').level, help=_L('suggestion_level').leveltext }, { name=_L('suggestion_level').level, help=_L('suggestion_level').leveltext },
{ name=_L('suggestion_level').workbench, help=_L('suggestion_level').workbenchtext }, { name=_L('suggestion_level').workbench, help=_L('suggestion_level').workbenchtext },
}) })
end end
end end
end) end)
Citizen.CreateThread(function() Citizen.CreateThread(function()
while PlayerData == nil do while PlayerData == nil do
PlayerData = QBCore.Functions.GetPlayerData() PlayerData = QBCore.Functions.GetPlayerData()
Citizen.Wait(10) Citizen.Wait(10)
end end
while PlayerData.job == nil do while PlayerData.job == nil do
PlayerData.job = QBCore.Functions.GetPlayerData().job PlayerData.job = QBCore.Functions.GetPlayerData().job
Citizen.Wait(10) Citizen.Wait(10)
end end
while PlayerData.gang == nil do while PlayerData.gang == nil do
PlayerData.gang = QBCore.Functions.GetPlayerData().gang PlayerData.gang = QBCore.Functions.GetPlayerData().gang
Citizen.Wait(10) Citizen.Wait(10)
end end
local inZone = false local inZone = false
local num = 0 local num = 0
local nearZone = false local nearZone = false
local enteredRange = false local enteredRange = false
local inWideRange = false local inWideRange = false
local ped = PlayerPedId() local ped = PlayerPedId()
while true do while true do
Citizen.Wait(0) Citizen.Wait(0)
local playerExists = false local playerExists = false
if not playerExists then if not playerExists then
if DoesEntityExist(ped) then if DoesEntityExist(ped) then
playerExists = true playerExists = true
else else
ped = PlayerPedId() ped = PlayerPedId()
end end
end end
local playerCoords = GetEntityCoords(ped) local playerCoords = GetEntityCoords(ped)
nearZone = false nearZone = false
inZone = false inZone = false
for k,v in pairs(Config.Crafting) do for k,v in pairs(Config.Crafting) do
if v.jobs['all'] ~= nil or checkJob(v.jobs) or checkGang(v.jobs) then if v.jobs['all'] ~= nil or checkJob(v.jobs) or checkGang(v.jobs) then
local distance = #(vector3(v.coordinates[1], v.coordinates[2], v.coordinates[3]) - playerCoords) local distance = #(vector3(v.coordinates[1], v.coordinates[2], v.coordinates[3]) - playerCoords)
if distance < Config.CraftRadius then if distance < Config.CraftRadius then
if closeWorkbench ~= v.tableID then if closeWorkbench ~= v.tableID then
closeWorkbench = v.tableID closeWorkbench = v.tableID
workbenchCoords = v.coordinates workbenchCoords = v.coordinates
end end
if not gotQueue then if not gotQueue then
gotQueue = true gotQueue = true
QBCore.Functions.TriggerCallback(Config.EventPrefix..":getQueue", function(queue, queues) QBCore.Functions.TriggerCallback(Config.EventPrefix..":getQueue", function(queue, queues)
CraftQueues = queues CraftQueues = queues
WorkbenchCraft = queue WorkbenchCraft = queue
end, v.tableID) end, v.tableID)
end end
end end
if distance < v.radius + 2 then if distance < v.radius + 2 then
local zDistance = playerCoords.z - v.coordinates[3] local zDistance = playerCoords.z - v.coordinates[3]
nearZone = true nearZone = true
if waitMore and not isCraftOpen then if waitMore and not isCraftOpen then
waitMore = false waitMore = false
end end
if not Config.NotInterectableTables then if not Config.NotInterectableTables then
if distance < v.radius and zDistance < 3 and zDistance > -3 then if distance < v.radius and zDistance < 3 and zDistance > -3 then
inZone = true inZone = true
if IsControlJustReleased(0, Config.Key) and not IsEntityDead(ped) then if IsControlJustReleased(0, Config.Key) and not IsEntityDead(ped) then
if GetVehiclePedIsUsing(ped) == 0 then if GetVehiclePedIsUsing(ped) == 0 then
waitMore = true waitMore = true
if not isCraftOpen then if not isCraftOpen then
TriggerEvent(Config.EventPrefix..':openWorkbench', k) TriggerEvent(Config.EventPrefix..':openWorkbench', k)
end end
else else
TriggerEvent(Config.EventPrefix..':notification', _L('inside_vehicle').title, _L('inside_vehicle').text, _L('inside_vehicle').time, _L('inside_vehicle').type) TriggerEvent(Config.EventPrefix..':notification', _L('inside_vehicle').title, _L('inside_vehicle').text, _L('inside_vehicle').time, _L('inside_vehicle').type)
end end
end end
end end
end end
elseif not waitMore and not inWideRange then elseif not waitMore and not inWideRange then
waitMore = true waitMore = true
end end
end end
end end
if nearZone and not enteredRange then if nearZone and not enteredRange then
enteredRange = true enteredRange = true
inWideRange = true inWideRange = true
elseif not nearZone and enteredRange then elseif not nearZone and enteredRange then
enteredRange = false enteredRange = false
inWideRange = false inWideRange = false
end end
if inZone and not hasEntered then if inZone and not hasEntered then
if Config.UseOkokTextUI then if Config.UseOkokTextUI then
exports['okokTextUI']:Open(_L('textUI').text, _L('textUI').color, _L('textUI').side) exports['okokTextUI']:Open(_L('textUI').text, _L('textUI').color, _L('textUI').side)
else else
TriggerEvent(Config.EventPrefix..':openTextUI', _L('textUI').text) TriggerEvent(Config.EventPrefix..':openTextUI', _L('textUI').text)
end end
hasEntered = true hasEntered = true
elseif not inZone and hasEntered then elseif not inZone and hasEntered then
if Config.UseOkokTextUI then if Config.UseOkokTextUI then
exports['okokTextUI']:Close() exports['okokTextUI']:Close()
else else
TriggerEvent(Config.EventPrefix..':closeTextUI') TriggerEvent(Config.EventPrefix..':closeTextUI')
end end
hasEntered = false hasEntered = false
end end
if waitMore then if waitMore then
Citizen.Wait(1000) Citizen.Wait(1000)
end end
end end
end) end)
Citizen.CreateThread(function() Citizen.CreateThread(function()
while true do while true do
local canCraft = false local canCraft = false
local queue = CraftQueues[closeWorkbench] local queue = CraftQueues[closeWorkbench]
if CraftQueues[closeWorkbench] ~= nil and closeWorkbench ~= "" and workbenchCoords ~= nil then if CraftQueues[closeWorkbench] ~= nil and closeWorkbench ~= "" and workbenchCoords ~= nil then
local playerCoords = GetEntityCoords(PlayerPedId()) local playerCoords = GetEntityCoords(PlayerPedId())
local distance = #(vector3(workbenchCoords[1], workbenchCoords[2], workbenchCoords[3]) - playerCoords) local distance = #(vector3(workbenchCoords[1], workbenchCoords[2], workbenchCoords[3]) - playerCoords)
local zDistance = playerCoords.z - workbenchCoords[3] local zDistance = playerCoords.z - workbenchCoords[3]
if distance < Config.CraftRadius then if distance < Config.CraftRadius then
local craftingItemID = 1 local craftingItemID = 1
for k,v in ipairs(CraftQueues[closeWorkbench]) do for k,v in ipairs(CraftQueues[closeWorkbench]) do
if v.time >= 0 and not v.isDone then if v.time >= 0 and not v.isDone then
craftingItemID = k craftingItemID = k
canCraft = true canCraft = true
break break
end end
end end
if canCraft then if canCraft then
if not updateTable then if not updateTable then
updateTable = true updateTable = true
end end
local craftTime = CraftQueues[closeWorkbench][craftingItemID].time local craftTime = CraftQueues[closeWorkbench][craftingItemID].time
CraftQueues[closeWorkbench][craftingItemID].isPending = false CraftQueues[closeWorkbench][craftingItemID].isPending = false
SendNUIMessage({ SendNUIMessage({
action = "ShowCraftCount", action = "ShowCraftCount",
time = CraftQueues[closeWorkbench][craftingItemID].time, time = CraftQueues[closeWorkbench][craftingItemID].time,
name = CraftQueues[closeWorkbench][craftingItemID].itemName, name = CraftQueues[closeWorkbench][craftingItemID].itemName,
}) })
if CraftQueues[closeWorkbench][craftingItemID].time <= 0 then if CraftQueues[closeWorkbench][craftingItemID].time <= 0 then
CraftQueues[closeWorkbench][craftingItemID].time = 0 CraftQueues[closeWorkbench][craftingItemID].time = 0
CraftQueues[closeWorkbench][craftingItemID].isDone = true CraftQueues[closeWorkbench][craftingItemID].isDone = true
local randomNum = math.random(1, 100) local randomNum = math.random(1, 100)
if randomNum <= tonumber(CraftQueues[closeWorkbench][craftingItemID].sucPC) then if randomNum <= tonumber(CraftQueues[closeWorkbench][craftingItemID].sucPC) then
SendNUIMessage({ SendNUIMessage({
action = "CompleteCraftCount", action = "CompleteCraftCount",
name = CraftQueues[closeWorkbench][craftingItemID].itemName, name = CraftQueues[closeWorkbench][craftingItemID].itemName,
}) })
else else
CraftQueues[closeWorkbench][craftingItemID].suc = false CraftQueues[closeWorkbench][craftingItemID].suc = false
SendNUIMessage({ SendNUIMessage({
action = "FailedCraftCount", action = "FailedCraftCount",
name = CraftQueues[closeWorkbench][craftingItemID].itemName, name = CraftQueues[closeWorkbench][craftingItemID].itemName,
}) })
end end
SendNUIMessage({ SendNUIMessage({
action = "updateCraftingItems", action = "updateCraftingItems",
queue = CraftQueues[closeWorkbench], queue = CraftQueues[closeWorkbench],
}) })
SendNUIMessage({ SendNUIMessage({
action = "HideCraftCount", action = "HideCraftCount",
}) })
Citizen.Wait(500) Citizen.Wait(500)
else else
SendNUIMessage({ SendNUIMessage({
action = "updateCraftingItems", action = "updateCraftingItems",
queue = CraftQueues[closeWorkbench], queue = CraftQueues[closeWorkbench],
}) })
CraftQueues[closeWorkbench][craftingItemID].time = craftTime - 1 CraftQueues[closeWorkbench][craftingItemID].time = craftTime - 1
Citizen.Wait(1000) Citizen.Wait(1000)
end end
else else
if updateTable then if updateTable then
updateTable = false updateTable = false
QBCore.Functions.TriggerCallback(Config.EventPrefix..":updateQueue", function(cb) QBCore.Functions.TriggerCallback(Config.EventPrefix..":updateQueue", function(cb)
end, CraftQueues) end, CraftQueues)
end end
Citizen.Wait(2000) Citizen.Wait(2000)
end end
else else
Citizen.Wait(3000) Citizen.Wait(3000)
end end
else else
Citizen.Wait(5000) Citizen.Wait(5000)
end end
end end
end) end)

View file

@ -1,42 +1,42 @@
fx_version 'cerulean' fx_version 'cerulean'
game 'gta5' game 'gta5'
author 'okok#3488' author 'okok#3488'
description 'okokCrafting' description 'okokCrafting'
version '1.1.0' version '1.1.0'
ui_page 'web/ui.html' ui_page 'web/ui.html'
files { files {
'web/*.*', 'web/*.*',
} }
shared_script 'config.lua' shared_script 'config.lua'
client_scripts { client_scripts {
'locales/*.lua', 'locales/*.lua',
'cl_utils.lua', 'cl_utils.lua',
'client.lua', 'client.lua',
} }
server_scripts { server_scripts {
'@oxmysql/lib/MySQL.lua', '@oxmysql/lib/MySQL.lua',
'locales/*.lua', 'locales/*.lua',
'sv_utils.lua', 'sv_utils.lua',
'server.lua' 'server.lua'
} }
lua54 'yes' lua54 'yes'
escrow_ignore { escrow_ignore {
'config.lua', 'config.lua',
'cl_utils.lua', 'cl_utils.lua',
'sv_utils.lua', 'sv_utils.lua',
'locales/*.lua', 'locales/*.lua',
} }
server_exports { server_exports {
'SetLevel' 'SetLevel'
} }
dependency '/assetpacks' dependency '/assetpacks'

View file

@ -1,133 +1,133 @@
Locales['de'] = { Locales['de'] = {
-- Notifications -- Notifications
['user_xp_set'] = { ['user_xp_set'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Deine Erfahrungspunkte wurden auf ${s1} gesetzt', text = 'Deine Erfahrungspunkte wurden auf ${s1} gesetzt',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set'] = { ['admin_xp_set'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast erfolgreich die Erfahrungspunkte von ${s1} zu ${s2} geändert', text = 'Du hast erfolgreich die Erfahrungspunkte von ${s1} zu ${s2} geändert',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_xp_set_workbench'] = { ['user_xp_set_workbench'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Deine Erfahrungspunkte wurden in der Werkbank ${s2} auf ${s1} gesetzt', text = 'Deine Erfahrungspunkte wurden in der Werkbank ${s2} auf ${s1} gesetzt',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set_workbench'] = { ['admin_xp_set_workbench'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast erfolgreich die Erfahrungspunkte von ${s1}, in der Werkbank ${s3}, auf ${s2} gesetzt', text = 'Du hast erfolgreich die Erfahrungspunkte von ${s1}, in der Werkbank ${s3}, auf ${s2} gesetzt',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set'] = { ['user_level_set'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Dein Level wurde auf ${s1} geändert', text = 'Dein Level wurde auf ${s1} geändert',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set'] = { ['admin_level_set'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast erfolgreich das Level von ${s1} auf ${s2} geändert', text = 'Du hast erfolgreich das Level von ${s1} auf ${s2} geändert',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set_workbench'] = { ['user_level_set_workbench'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Dein Level wurde in der Werkbank ${s2} auf ${s1} geändert', text = 'Dein Level wurde in der Werkbank ${s2} auf ${s1} geändert',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set_workbench'] = { ['admin_level_set_workbench'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast erfolgreich das Level von ${s1}, in der Werkbank ${s3}, auf ${s2} geändert', text = 'Du hast erfolgreich das Level von ${s1}, in der Werkbank ${s3}, auf ${s2} geändert',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['admin_level_no_exist'] = { ['admin_level_no_exist'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Dieses Level existiert nicht', text = 'Dieses Level existiert nicht',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['cant_carry'] = { ['cant_carry'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = "Du kannst diesen Gegenstand nicht bei dir tragen", text = "Du kannst diesen Gegenstand nicht bei dir tragen",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['added_to_queue'] = { ['added_to_queue'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = '${s1} wurde zur Warteschlange hinzugefügt', text = '${s1} wurde zur Warteschlange hinzugefügt',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cant_craft'] = { ['cant_craft'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = "Du kannst ${s1} nicht herstellen", text = "Du kannst ${s1} nicht herstellen",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['inside_vehicle'] = { ['inside_vehicle'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = "Du kannst nichts in einem Fahrzeug herstellen", text = "Du kannst nichts in einem Fahrzeug herstellen",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['queue_limit'] = { ['queue_limit'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Die Warteschlange ist bereits voll', text = 'Die Warteschlange ist bereits voll',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['claimed_item'] = { ['claimed_item'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast ${s1} bekommen', text = 'Du hast ${s1} bekommen',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['claimed_all_items'] = { ['claimed_all_items'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast alle Gegenstände bekommen', text = 'Du hast alle Gegenstände bekommen',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cancel_item'] = { ['cancel_item'] = {
title = 'WERKBANK', title = 'WERKBANK',
text = 'Du hast die Herstellung von ${s1} abgebrochen', text = 'Du hast die Herstellung von ${s1} abgebrochen',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
-- Chat suggestions -- Chat suggestions
['suggestion_xp'] = { ['suggestion_xp'] = {
maintext = 'Ändere das XP eines Spieler', maintext = 'Ändere das XP eines Spieler',
id = 'ID', id = 'ID',
idtext = "Ziel ID", idtext = "Ziel ID",
xp = 'XP', xp = 'XP',
xptext = 'XP menge', xptext = 'XP menge',
workbench = 'Werkbank', workbench = 'Werkbank',
workbenchtext = "ID der Werkbank", workbenchtext = "ID der Werkbank",
}, },
['suggestion_level'] = { ['suggestion_level'] = {
maintext = 'Ändere das Level eines Spielers', maintext = 'Ändere das Level eines Spielers',
id = 'ID', id = 'ID',
idtext = "Ziel ID", idtext = "Ziel ID",
level = 'Level', level = 'Level',
leveltext = 'Level', leveltext = 'Level',
workbench = 'Werkbank', workbench = 'Werkbank',
workbenchtext = "ID der Werkbank", workbenchtext = "ID der Werkbank",
}, },
-- okokTextUI -- okokTextUI
['textUI'] = { ['textUI'] = {
text = '[E] Werkbank zu öffnen', text = '[E] Werkbank zu öffnen',
color = 'darkblue', color = 'darkblue',
side = 'left' side = 'left'
}, },
} }

View file

@ -1,133 +1,133 @@
Locales['en'] = { Locales['en'] = {
-- Notifications -- Notifications
['user_xp_set'] = { ['user_xp_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Your XP was set to ${s1}', text = 'Your XP was set to ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set'] = { ['admin_xp_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You set the XP of ${s1} to ${s2} successfully', text = 'You set the XP of ${s1} to ${s2} successfully',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_xp_set_workbench'] = { ['user_xp_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Your XP was set to ${s1} in ${s2}', text = 'Your XP was set to ${s1} in ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set_workbench'] = { ['admin_xp_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You set the XP of ${s1} to ${s2} in ${s3} successfully', text = 'You set the XP of ${s1} to ${s2} in ${s3} successfully',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set'] = { ['user_level_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Your level was set to ${s1}', text = 'Your level was set to ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set'] = { ['admin_level_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You set the level of ${s1} to ${s2} successfully', text = 'You set the level of ${s1} to ${s2} successfully',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set_workbench'] = { ['user_level_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Your level was set to ${s1} in ${s2}', text = 'Your level was set to ${s1} in ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set_workbench'] = { ['admin_level_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You set the level of ${s1} to ${s2} in ${s3} successfully', text = 'You set the level of ${s1} to ${s2} in ${s3} successfully',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['admin_level_no_exist'] = { ['admin_level_no_exist'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'That level does not exist', text = 'That level does not exist',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['cant_carry'] = { ['cant_carry'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "You can't carry this item", text = "You can't carry this item",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['added_to_queue'] = { ['added_to_queue'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = '${s1} added to the crafting queue', text = '${s1} added to the crafting queue',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cant_craft'] = { ['cant_craft'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "You can't craft ${s1}", text = "You can't craft ${s1}",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['inside_vehicle'] = { ['inside_vehicle'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "You can't craft inside a vehicle", text = "You can't craft inside a vehicle",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['queue_limit'] = { ['queue_limit'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You have reached the queue limit', text = 'You have reached the queue limit',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['claimed_item'] = { ['claimed_item'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You have claimed ${s1}', text = 'You have claimed ${s1}',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['claimed_all_items'] = { ['claimed_all_items'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You have claimed all items', text = 'You have claimed all items',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cancel_item'] = { ['cancel_item'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'You canceled a crafting of ${s1}', text = 'You canceled a crafting of ${s1}',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
-- Chat suggestions -- Chat suggestions
['suggestion_xp'] = { ['suggestion_xp'] = {
maintext = 'Set a players crafting XP', maintext = 'Set a players crafting XP',
id = 'id', id = 'id',
idtext = "Target's id", idtext = "Target's id",
xp = 'XP', xp = 'XP',
xptext = 'XP amount', xptext = 'XP amount',
workbench = 'workbench', workbench = 'workbench',
workbenchtext = "Workbenche's id", workbenchtext = "Workbenche's id",
}, },
['suggestion_level'] = { ['suggestion_level'] = {
maintext = 'Set a players crafting Level', maintext = 'Set a players crafting Level',
id = 'id', id = 'id',
idtext = "Target's id", idtext = "Target's id",
level = 'Level', level = 'Level',
leveltext = 'Level', leveltext = 'Level',
workbench = 'workbench', workbench = 'workbench',
workbenchtext = "Workbenche's id", workbenchtext = "Workbenche's id",
}, },
-- okokTextUI -- okokTextUI
['textUI'] = { ['textUI'] = {
text = '[E] Open crafting table', text = '[E] Open crafting table',
color = 'darkblue', color = 'darkblue',
side = 'left' side = 'left'
}, },
} }

View file

@ -1,133 +1,133 @@
Locales['fr'] = { Locales['fr'] = {
-- Notifications -- Notifications
['user_xp_set'] = { ['user_xp_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Votre XP a été défini sur ${s1}', text = 'Votre XP a été défini sur ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set'] = { ['admin_xp_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez défini XP de ${s1} sur ${s2} avec succès', text = 'Vous avez défini XP de ${s1} sur ${s2} avec succès',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_xp_set_workbench'] = { ['user_xp_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Votre XP a été défini de ${s1} en ${s2}', text = 'Votre XP a été défini de ${s1} en ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set_workbench'] = { ['admin_xp_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez défini XP de ${s1} sur ${s2} en ${s3} avec succès', text = 'Vous avez défini XP de ${s1} sur ${s2} en ${s3} avec succès',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set'] = { ['user_level_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Votre niveau a été défini sur ${s1}', text = 'Votre niveau a été défini sur ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set'] = { ['admin_level_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez défini le niveau de ${s1} sur ${s2} avec succès', text = 'Vous avez défini le niveau de ${s1} sur ${s2} avec succès',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set_workbench'] = { ['user_level_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Votre niveau a été défini sur ${s1} en ${s2}', text = 'Votre niveau a été défini sur ${s1} en ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set_workbench'] = { ['admin_level_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez défini le niveau de ${s1} sur ${s2} en ${s3} avec succès', text = 'Vous avez défini le niveau de ${s1} sur ${s2} en ${s3} avec succès',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['admin_level_no_exist'] = { ['admin_level_no_exist'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Ce niveau n\'existe pas', text = 'Ce niveau n\'existe pas',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['cant_carry'] = { ['cant_carry'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "Cet objet est trop lourd ! Impossible de le porter", text = "Cet objet est trop lourd ! Impossible de le porter",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['added_to_queue'] = { ['added_to_queue'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = '${s1} ajouté à la file de fabrication', text = '${s1} ajouté à la file de fabrication',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cant_craft'] = { ['cant_craft'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "Vous ne pouvez pas fabriquer ${s1}", text = "Vous ne pouvez pas fabriquer ${s1}",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['inside_vehicle'] = { ['inside_vehicle'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "Vous ne pouvez pas fabriquer à l\'intérieur d'un véhicule", text = "Vous ne pouvez pas fabriquer à l\'intérieur d'un véhicule",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['queue_limit'] = { ['queue_limit'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez atteint la limite de la file de fabrication', text = 'Vous avez atteint la limite de la file de fabrication',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['claimed_item'] = { ['claimed_item'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez reçu ${s1}', text = 'Vous avez reçu ${s1}',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['claimed_all_items'] = { ['claimed_all_items'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez tout reçu', text = 'Vous avez tout reçu',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cancel_item'] = { ['cancel_item'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Vous avez annulé la fabrication de ${s1}', text = 'Vous avez annulé la fabrication de ${s1}',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
-- Chat suggestions -- Chat suggestions
['suggestion_xp'] = { ['suggestion_xp'] = {
maintext = 'Définissez un joueur fabriquant de l\'XP', maintext = 'Définissez un joueur fabriquant de l\'XP',
id = 'id', id = 'id',
idtext = "ID de la cible", idtext = "ID de la cible",
xp = 'XP', xp = 'XP',
xptext = 'Montant d\'XP', xptext = 'Montant d\'XP',
workbench = 'workbench', workbench = 'workbench',
workbenchtext = "ID des établis", workbenchtext = "ID des établis",
}, },
['suggestion_level'] = { ['suggestion_level'] = {
maintext = 'Définissez le niveau de craft des joueurs', maintext = 'Définissez le niveau de craft des joueurs',
id = 'id', id = 'id',
idtext = "ID de la cible", idtext = "ID de la cible",
level = 'Level', level = 'Level',
leveltext = 'Niveau', leveltext = 'Niveau',
workbench = 'workbench', workbench = 'workbench',
workbenchtext = "ID des établis", workbenchtext = "ID des établis",
}, },
-- okokTextUI -- okokTextUI
['textUI'] = { ['textUI'] = {
text = '[E] Ouvrir l\'établi', text = '[E] Ouvrir l\'établi',
color = 'darkblue', color = 'darkblue',
side = 'left' side = 'left'
}, },
} }

View file

@ -1,133 +1,133 @@
Locales['gr'] = { Locales['gr'] = {
-- Notifications -- Notifications
['user_xp_set'] = { ['user_xp_set'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Το XP σας ορίστηκε σε ${s1}', text = 'Το XP σας ορίστηκε σε ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set'] = { ['admin_xp_set'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Ρυθμίζετε το XP του ${s1} σε ${s2} με επιτυχία', text = 'Ρυθμίζετε το XP του ${s1} σε ${s2} με επιτυχία',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_xp_set_workbench'] = { ['user_xp_set_workbench'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Το XP σας ορίστηκε σε ${s1} σε ${s2}', text = 'Το XP σας ορίστηκε σε ${s1} σε ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set_workbench'] = { ['admin_xp_set_workbench'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Ρυθμίζετε το XP του ${s1} προς ${s2} σε ${s3} με επιτυχία', text = 'Ρυθμίζετε το XP του ${s1} προς ${s2} σε ${s3} με επιτυχία',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set'] = { ['user_level_set'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Το επίπεδό σας ορίστηκε σε ${s1}', text = 'Το επίπεδό σας ορίστηκε σε ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set'] = { ['admin_level_set'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Ρυθμίσετε το επίπεδο του ${s1} προς ${s2} με επιτυχία', text = 'Ρυθμίσετε το επίπεδο του ${s1} προς ${s2} με επιτυχία',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set_workbench'] = { ['user_level_set_workbench'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Το επίπεδό σας ορίστηκε σε ${s1} in ${s2}', text = 'Το επίπεδό σας ορίστηκε σε ${s1} in ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set_workbench'] = { ['admin_level_set_workbench'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Ρυθμίσετε το επίπεδο του ${s1} προς ${s2} σε ${s3} με επιτυχία', text = 'Ρυθμίσετε το επίπεδο του ${s1} προς ${s2} σε ${s3} με επιτυχία',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['admin_level_no_exist'] = { ['admin_level_no_exist'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Αυτό το επίπεδο δεν υπάρχει', text = 'Αυτό το επίπεδο δεν υπάρχει',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['cant_carry'] = { ['cant_carry'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = "Δεν μπορείτε να μεταφέρετε αυτό το αντικείμενο", text = "Δεν μπορείτε να μεταφέρετε αυτό το αντικείμενο",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['added_to_queue'] = { ['added_to_queue'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = '${s1} προστέθηκε στην ουρά χειροτεχνίας', text = '${s1} προστέθηκε στην ουρά χειροτεχνίας',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cant_craft'] = { ['cant_craft'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = "Δεν μπορείς να χειροτεχνήσεις ${s1}", text = "Δεν μπορείς να χειροτεχνήσεις ${s1}",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['inside_vehicle'] = { ['inside_vehicle'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = "Δεν μπορείτε να κάνετε χειροτεχνία μέσα σε ένα όχημα", text = "Δεν μπορείτε να κάνετε χειροτεχνία μέσα σε ένα όχημα",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['queue_limit'] = { ['queue_limit'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Έχετε φτάσει το όριο της ουράς', text = 'Έχετε φτάσει το όριο της ουράς',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['claimed_item'] = { ['claimed_item'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Έχετε διεκδικήσει ${s1}', text = 'Έχετε διεκδικήσει ${s1}',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['claimed_all_items'] = { ['claimed_all_items'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Έχετε διεκδικήσει όλα τα στοιχεία', text = 'Έχετε διεκδικήσει όλα τα στοιχεία',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cancel_item'] = { ['cancel_item'] = {
title = 'ΚΑΤΑΣΚΕΥΗ', title = 'ΚΑΤΑΣΚΕΥΗ',
text = 'Ακυρώσατε μια δημιουργία του ${s1}', text = 'Ακυρώσατε μια δημιουργία του ${s1}',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
-- Chat suggestions -- Chat suggestions
['suggestion_xp'] = { ['suggestion_xp'] = {
maintext = 'Ρυθμίσετε το επίπεδο του παίκτη', maintext = 'Ρυθμίσετε το επίπεδο του παίκτη',
id = 'ταυτότητα', id = 'ταυτότητα',
idtext = "Ταυτότητα στόχου", idtext = "Ταυτότητα στόχου",
xp = 'XP', xp = 'XP',
xptext = 'XP ποσό', xptext = 'XP ποσό',
workbench = 'πάγκος εργασίας', workbench = 'πάγκος εργασίας',
workbenchtext = "Ταυτότητα πάγκων εργασίας", workbenchtext = "Ταυτότητα πάγκων εργασίας",
}, },
['suggestion_level'] = { ['suggestion_level'] = {
maintext = 'Ρυθμίσετε το επίπεδο του παίκτη', maintext = 'Ρυθμίσετε το επίπεδο του παίκτη',
id = 'ταυτότητα', id = 'ταυτότητα',
idtext = "Ταυτότητα στόχου", idtext = "Ταυτότητα στόχου",
level = 'Επίπεδο', level = 'Επίπεδο',
leveltext = 'Επίπεδο', leveltext = 'Επίπεδο',
workbench = 'πάγκος εργασίας', workbench = 'πάγκος εργασίας',
workbenchtext = "Ταυτότητα πάγκων εργασίας", workbenchtext = "Ταυτότητα πάγκων εργασίας",
}, },
-- okokTextUI -- okokTextUI
['textUI'] = { ['textUI'] = {
text = '[E] Να ανοίξω το τραπέζι χειροτεχνίας', text = '[E] Να ανοίξω το τραπέζι χειροτεχνίας',
color = 'darkblue', color = 'darkblue',
side = 'left' side = 'left'
}, },
} }

View file

@ -1,133 +1,133 @@
Locales['pt'] = { Locales['pt'] = {
-- Notifications -- Notifications
['user_xp_set'] = { ['user_xp_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'A tua XP foi alterada para ${s1}', text = 'A tua XP foi alterada para ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set'] = { ['admin_xp_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Alteraste a XP de ${s1} para ${s2} com sucesso', text = 'Alteraste a XP de ${s1} para ${s2} com sucesso',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_xp_set_workbench'] = { ['user_xp_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'A tua XP foi alterada para ${s1} em ${s2}', text = 'A tua XP foi alterada para ${s1} em ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_xp_set_workbench'] = { ['admin_xp_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Alteraste a XP de ${s1} para ${s2} em ${s3} com sucesso', text = 'Alteraste a XP de ${s1} para ${s2} em ${s3} com sucesso',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set'] = { ['user_level_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'O teu nível foi alterado para ${s1}', text = 'O teu nível foi alterado para ${s1}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set'] = { ['admin_level_set'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Alteraste o nível de ${s1} em ${s2} com sucesso', text = 'Alteraste o nível de ${s1} em ${s2} com sucesso',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['user_level_set_workbench'] = { ['user_level_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'O teu nível foi alterado para ${s1} em ${s2}', text = 'O teu nível foi alterado para ${s1} em ${s2}',
time = 5000, time = 5000,
type = 'info' type = 'info'
}, },
['admin_level_set_workbench'] = { ['admin_level_set_workbench'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Alteraste o nível de ${s1} para ${s2} em ${s3} com sucesso', text = 'Alteraste o nível de ${s1} para ${s2} em ${s3} com sucesso',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['admin_level_no_exist'] = { ['admin_level_no_exist'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Esse nível não existe', text = 'Esse nível não existe',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['cant_carry'] = { ['cant_carry'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "Não tens espaço suficiente para carregar o item", text = "Não tens espaço suficiente para carregar o item",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['added_to_queue'] = { ['added_to_queue'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = '${s1} foi adicionado à queue', text = '${s1} foi adicionado à queue',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cant_craft'] = { ['cant_craft'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "Não podes craftar ${s1}", text = "Não podes craftar ${s1}",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['inside_vehicle'] = { ['inside_vehicle'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = "Não podes craftar dentro de um veículo", text = "Não podes craftar dentro de um veículo",
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['queue_limit'] = { ['queue_limit'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Atingiste o limite da queue', text = 'Atingiste o limite da queue',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
['claimed_item'] = { ['claimed_item'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Resgataste ${s1}', text = 'Resgataste ${s1}',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['claimed_all_items'] = { ['claimed_all_items'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Regataste todos os itens', text = 'Regataste todos os itens',
time = 5000, time = 5000,
type = 'success' type = 'success'
}, },
['cancel_item'] = { ['cancel_item'] = {
title = 'CRAFTING', title = 'CRAFTING',
text = 'Cancelaste o craft de ${s1}', text = 'Cancelaste o craft de ${s1}',
time = 5000, time = 5000,
type = 'error' type = 'error'
}, },
-- Chat suggestions -- Chat suggestions
['suggestion_xp'] = { ['suggestion_xp'] = {
maintext = 'Define o XP de craft de um jogador', maintext = 'Define o XP de craft de um jogador',
id = 'id', id = 'id',
idtext = "ID do jogador", idtext = "ID do jogador",
xp = 'XP', xp = 'XP',
xptext = 'Quantidade de XP', xptext = 'Quantidade de XP',
workbench = 'workbench', workbench = 'workbench',
workbenchtext = "ID da workbench", workbenchtext = "ID da workbench",
}, },
['suggestion_level'] = { ['suggestion_level'] = {
maintext = 'Define o nível de craft de um jogador', maintext = 'Define o nível de craft de um jogador',
id = 'id', id = 'id',
idtext = "ID do jogador", idtext = "ID do jogador",
level = 'Nível', level = 'Nível',
leveltext = 'Nível', leveltext = 'Nível',
workbench = 'workbench', workbench = 'workbench',
workbenchtext = "ID da workbench", workbenchtext = "ID da workbench",
}, },
-- okokTextUI -- okokTextUI
['textUI'] = { ['textUI'] = {
text = '[E] Abrir crafting table', text = '[E] Abrir crafting table',
color = 'darkblue', color = 'darkblue',
side = 'left' side = 'left'
}, },
} }

View file

@ -0,0 +1,2 @@
ALTER TABLE players ADD COLUMN xp LONGTEXT NULL;
ALTER TABLE players ADD COLUMN okokcrafts LONGTEXT NULL;

View file

@ -1,125 +1,125 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<meta charset="UTF-8"> <meta charset="UTF-8">
<head> <head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="styles.css" rel="stylesheet"> <link href="styles.css" rel="stylesheet">
</head> </head>
<body> <body>
<div class="crafting-body"> <div class="crafting-body">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="card craftingq_card"> <div class="card craftingq_card">
<div class="card-body craftingq_card-body"> <div class="card-body craftingq_card-body">
<div class="section-title text-center">Crafting Queue</div> <div class="section-title text-center">Crafting Queue</div>
<hr> <hr>
<div class="craftingq_window"> <div class="craftingq_window">
<div class="d-flex justify-content-between w-100 queue-item-concluded"> <div class="d-flex justify-content-between w-100 queue-item-concluded">
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<img src="icons/compactrifle.png" class="image_components"> <img src="icons/compactrifle.png" class="image_components">
<div> <div>
<div class="queue-itemname">Compact Rifle x1</div> <div class="queue-itemname">Compact Rifle x1</div>
<div class="queue-itemstate">Concluded</div> <div class="queue-itemstate">Concluded</div>
</div> </div>
</div> </div>
<div class="d-flex align-items-center queue-item-mr"> <div class="d-flex align-items-center queue-item-mr">
<span class="queue-claimbutton"><div class="d-flex justify-content-center align-items-center queue-claimbutton-bg"><i class="fas fa-check"></i></div></span> <span class="queue-claimbutton"><div class="d-flex justify-content-center align-items-center queue-claimbutton-bg"><i class="fas fa-check"></i></div></span>
</div> </div>
</div> </div>
<div class="d-flex justify-content-between w-100 queue-item mt-2"> <div class="d-flex justify-content-between w-100 queue-item mt-2">
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<img src="icons/compactrifle.png" class="image_components"> <img src="icons/compactrifle.png" class="image_components">
<div> <div>
<div class="queue-itemname">Compact Rifle x1</div> <div class="queue-itemname">Compact Rifle x1</div>
<div class="queue-itemstate">Time left: 55s</div> <div class="queue-itemstate">Time left: 55s</div>
</div> </div>
</div> </div>
<div class="d-flex align-items-center queue-item-mr"> <div class="d-flex align-items-center queue-item-mr">
<span class="queue-cancelbutton"><div class="d-flex justify-content-center align-items-center queue-cancelbutton-bg"><i class="fas fa-times"></i></div></span> <span class="queue-cancelbutton"><div class="d-flex justify-content-center align-items-center queue-cancelbutton-bg"><i class="fas fa-times"></i></div></span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="claimall-button-div mt-2"> <div class="claimall-button-div mt-2">
<button type="button" id="claimall-button" class="btn btn-blue" onclick="claimall(this)">CLAIM ALL</button> <button type="button" id="claimall-button" class="btn btn-blue" onclick="claimall(this)">CLAIM ALL</button>
</div> </div>
</div> </div>
</div> </div>
<div class="col"> <div class="col">
<div class="title-main text-center"> <div class="title-main text-center">
<div class="title"> <div class="title">
<span class="title-name"></span><span class="title-name2">Crafting</span> <span class="title-name"></span><span class="title-name2">Crafting</span>
</div> </div>
</div> </div>
<div class="itemslist"> <div class="itemslist">
<div class="card itemslist_card"> <div class="card itemslist_card">
<div class="card-body itemslist_card-body justify-content-start"> <div class="card-body itemslist_card-body justify-content-start">
<div class="itemslist_window" id="craft-table"></div> <div class="itemslist_window" id="craft-table"></div>
</div> </div>
</div> </div>
</div> </div>
<div class="text-center" id="categories_box"> <div class="text-center" id="categories_box">
<div class="btn-group" role="group" id="categories_btns"></div> <div class="btn-group" role="group" id="categories_btns"></div>
</div> </div>
</div> </div>
<div class="col xpbar-col"> <div class="col xpbar-col">
<div class="xpbar"> <div class="xpbar">
<div id="level-text" class="text-center">Current Level: <span id="currentlevel">28</span></div> <div id="level-text" class="text-center">Current Level: <span id="currentlevel">28</span></div>
<div class="progress"> <div class="progress">
<div class="progress-value d-flex justify-content-center align-items-center"></div> <div class="progress-value d-flex justify-content-center align-items-center"></div>
</div> </div>
</div> </div>
<div class="itemrequirements"> <div class="itemrequirements">
<div class="card itemr_card mb-2"> <div class="card itemr_card mb-2">
<div class="card-body itemr_card-body"> <div class="card-body itemr_card-body">
<span id="time"><i class="fas fa-clock"></i> <span class="craft-tp"><span id="craft-time"></span>s</span></span> <span id="time"><i class="fas fa-clock"></i> <span class="craft-tp"><span id="craft-time"></span>s</span></span>
<span id="percentage"><i class="fas fa-percentage"></i> <span class="craft-tp"><span id="craft-percentage"></span></span></span> <span id="percentage"><i class="fas fa-percentage"></i> <span class="craft-tp"><span id="craft-percentage"></span></span></span>
<div class="ywr text-center" id="top_text">You will receive</div> <div class="ywr text-center" id="top_text">You will receive</div>
<div class="d-flex align-items-center justify-content-center mx-1" id="side-image"> <div class="d-flex align-items-center justify-content-center mx-1" id="side-image">
<img src="icons/compactrifle.png" class="image_itemselected"> <img src="icons/compactrifle.png" class="image_itemselected">
<span class="text_itemselected ms-2"></span> <span class="text_itemselected ms-2"></span>
</div> </div>
<hr> <hr>
<div class="section-title text-center mb-2" id="bot_text">Requirements</div> <div class="section-title text-center mb-2" id="bot_text">Requirements</div>
<div class="components_window"></div> <div class="components_window"></div>
</div> </div>
</div> </div>
<div id="craft-buttons-info"> <div id="craft-buttons-info">
<div class="d-flex mb-2"> <div class="d-flex mb-2">
<div class="d-flex mip" id="selector"> <div class="d-flex mip" id="selector">
<button type="button" class="btn btn-blue" id="minus"><i class="fa-solid fa-minus"></i></button> <button type="button" class="btn btn-blue" id="minus"><i class="fa-solid fa-minus"></i></button>
<input type="number" id="quantity" onchange="quantity_change(this)" class="form-control text-center" value="1" min="1" max="9999999999"> <input type="number" id="quantity" onchange="quantity_change(this)" class="form-control text-center" value="1" min="1" max="9999999999">
<button type="button" class="btn btn-blue" id="plus"><i class="fa-solid fa-plus"></i></button> <button type="button" class="btn btn-blue" id="plus"><i class="fa-solid fa-plus"></i></button>
</div> </div>
<button type="button" class="btn btn-blue ms-2" id="max">MAX</button> <button type="button" class="btn btn-blue ms-2" id="max">MAX</button>
</div> </div>
<div id="craft-button-div"></div> <div id="craft-button-div"></div>
</div> </div>
<div id="craft-buttons-info-level"> <div id="craft-buttons-info-level">
<div id="craft-button-div-level"></div> <div id="craft-button-div-level"></div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="timer"> <div class="timer">
<div class="card timer_card"> <div class="card timer_card">
<div class="card-body timer_card-body"> <div class="card-body timer_card-body">
<span><i id="cog" class="fas fa-cog fa-spin"></i></span><span id="crafting-text"></span> <span id="item-name"></span> <span id="item-timer"></span> <span><i id="cog" class="fas fa-cog fa-spin"></i></span><span id="crafting-text"></span> <span id="item-name"></span> <span id="item-timer"></span>
</div> </div>
</div> </div>
</div> </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="scripts.js" type="text/javascript"></script> <script src="scripts.js" type="text/javascript"></script>
</body> </body>
</html> </html>

View file

@ -1,2 +0,0 @@
ALTER TABLE players ADD COLUMN xp LONGTEXT NULL;
ALTER TABLE players ADD COLUMN okokcrafts LONGTEXT NULL;