Skip to content

Commit

Permalink
coords update (#1)
Browse files Browse the repository at this point in the history
* coords update

* Update Readme.md

* Update config.lua

* Update main.lua
  • Loading branch information
TonybynMp4 authored Aug 2, 2023
1 parent d88d9a8 commit 2086fe3
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 40 deletions.
49 changes: 49 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,52 @@ Add the pictures of the image folder to ox_inventory/web/images
},
},
```

## Uniqx coords Config
```
duty = {
coords = vector3(-1200.5, -902.27, 14.75),
size = vector3(2.0, 0.5, 2),
rotation = 125,
},
cook = {
coords = vector3(-1195.02, -897.35, 14),
size = vector3(0.5, 0.7, 0.8),
rotation = 74,
},
cook_2 = {
coords = vector3(-1195.75, -897.15, 14),
size = vector3(0.5, 0.75, 0.8),
rotation = 74,
},
fry = {
coords = vector3(-1196.08, -900.08, 13.5),
size = vector3(0.70, 2.5, 1.5),
rotation = 74,
},
burgers = {
coords = vector3(-1195.29, -897.55, 13.80),
size = vector3(1, 4.5, 0.2),
rotation = 74,
},
drinks = {
coords = vector3(-1191, -898.75, 13.89),
size = vector3(0.6, 2.2, 1.5),
rotation = 125,
},
tray = {
coords = vector3(-1194.93, -893.3, 14.15),
size = vector3(1, 1.05, 0.5),
rotation = 165,
},
hotstorage = {
coords = vector3(-1203.08, -896.96, 14.5),
size = vector3(1.2, 3, 1.8),
rotation = 35,
},
storage = {
coords = vector3(-1196, -901, 13.89),
size = vector3(0.75, 3, 1.8),
rotation = 75,
},
```
74 changes: 37 additions & 37 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ end
CreateThread(function()
exports.ox_target:addBoxZone({
name = "BurgerShot_Duty",
coords = vec3(-1196.95, -902.45, 14.0),
size = vec3(1.5, 0.5, 2),
rotation = 33.5,
debug = false,
coords = Config.coords.duty.coords,
size = Config.coords.duty.size,
rotation = Config.coords.duty.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -165,10 +165,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "BurgerShot_Cook",
coords = vec3(-1200.54, -900.92, 13.8),
size = vec3(1.0, 1.8, 0.8),
rotation = 34,
debug = false,
coords = Config.coords.cook.coords,
size = Config.coords.cook.size,
rotation = Config.coords.cook.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -185,10 +185,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "BurgerShot_Cook_2",
coords = vec3(-1202.94, -897.38, 14.0),
size = vec3(1.0, 1.8, 0.8),
rotation = 34,
debug = false,
coords = Config.coords.cook_2.coords,
size = Config.coords.cook_2.size,
rotation = Config.coords.cook_2.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -205,10 +205,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "BurgerShot_Fry",
coords = vec3(-1202.01, -899.27, 14.0),
size = vec3(1.5, 2.5, 0.8),
rotation = 34,
debug = false,
coords = Config.coords.fry.coords,
size = Config.coords.fry.size,
rotation = Config.coords.fry.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -225,10 +225,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "BurgerShot_Burgers_Craft",
coords = vec3(-1197.57, -899.41, 14.0),
size = vec3(0.7, 1.8, 0.8),
rotation = 304,
debug = false,
coords = Config.coords.burgers.coords,
size = Config.coords.burgers.size,
rotation = Config.coords.burgers.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -243,10 +243,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "BurgerShot_Drinks_Craft",
coords = vec3(-1199.54, -895.52, 14.0),
size = vec3(0.6, 2.2, 1),
rotation = 34,
debug = false,
coords = Config.coords.drinks.coords,
size = Config.coords.drinks.size,
rotation = Config.coords.drinks.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -261,10 +261,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "burger_tray",
coords = vec3(-1193.87, -894.38, 14.0),
size = vec3(1, 1.05, 0.5),
rotation = 35,
debug = false,
coords = Config.coords.tray.coords,
size = Config.coords.tray.size,
rotation = Config.coords.tray.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -281,10 +281,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "burgershot_hotstorage",
coords = vec3(-1197.78, -894.45, 14.0),
size = vec3(1.2, 4.6, 1.8),
rotation = 35,
debug = false,
coords = Config.coords.hotstorage.coords,
size = Config.coords.hotstorage.size,
rotation = Config.coords.hotstorage.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -301,10 +301,10 @@ CreateThread(function()

exports.ox_target:addBoxZone({
name = "burgershot_storage",
coords = vec3(-1202.64, -891.77, 14),
size = vec3(1, 3, 1.8),
rotation = 35,
debug = false,
coords = Config.coords.storage.coords,
size = Config.coords.storage.size,
rotation = Config.coords.storage.rotation,
debug = Config.Zonedebug,
options = {
{
type = "client",
Expand All @@ -328,4 +328,4 @@ end)

RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
onDuty = QBCore.Functions.GetPlayerData().job.onduty
end)
end)
50 changes: 50 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
Config = {}

Config.Zonedebug = false

Config.coords = {
duty = {
coords = vector3(-1196.95, -902.45, 14.0),
size = vector3(1.5, 0.5, 2),
rotation = 33.5,
},
cook = {
coords = vector3(-1200.54, -900.92, 13.8),
size = vector3(1.0, 1.8, 0.8),
rotation = 34,
},
cook_2 = {
coords = vector3(-1202.94, -897.38, 14.0),
size = vector3(1.0, 1.8, 0.8),
rotation = 34,
},
fry = {
coords = vector3(-1202.01, -899.27, 14.0),
size = vector3(1.5, 2.5, 0.8),
rotation = 34,
},
burgers = {
coords = vector3(-1197.57, -899.41, 14.0),
size = vector3(0.7, 1.8, 0.8),
rotation = 304,
},
drinks = {
coords = vector3(-1199.54, -895.52, 14.0),
size = vector3(0.6, 2.2, 1),
rotation = 34,
},
tray = {
coords = vector3(-1193.87, -894.38, 14.0),
size = vector3(1, 1.05, 0.5),
rotation = 35,
},
hotstorage = {
coords = vector3(-1197.78, -894.45, 14.0),
size = vector3(1.2, 4.6, 1.8),
rotation = 35,
},
storage = {
coords = vector3(-1202.64, -891.77, 14),
size = vector3(1, 3, 1.8),
rotation = 35,
},
}

Config.IngredientsLabels = {
["tomato"] = "Tomates",
["mshakeformula"] = "Formule à Milkshake",
Expand Down
6 changes: 3 additions & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ local stashes = {
slots = 5,
weight = 10000,
groups = nil,
coords = vector3(-1195.29, -892.31, 14.0),
coords = Config.coords.tray.coords,
},
{
id = 'burgershot_hotstorage',
label = Lang:t('info.storage'),
slots = 50,
weight = 75000,
groups = { ['burgershot'] = 0},
coords = vector3(-1197.78, -894.45, 14.0),
coords = Config.coords.hotstorage.coords,
},
{
id = 'burgershot_storage',
label = Lang:t('info.storage'),
slots = 20,
weight = 100000,
groups = { ['burgershot'] = 0},
coords = vector3(-1202.64, -891.77, 14),
coords = Config.coords.storage.coords,
}
}

Expand Down

0 comments on commit 2086fe3

Please sign in to comment.