Skip to content

Commit

Permalink
refactor(config): sell location using vec3 for zone dimensions
Browse files Browse the repository at this point in the history
Manason authored Nov 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 42f58b2 commit c02b26a
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
@@ -194,7 +194,7 @@ local function createSeller()
lib.zones.box({
coords = current.coords.xyz,
rotation = current.coords.w,
size = vec3(current.zoneOptions.length, current.zoneOptions.width, 3),
size = current.zoneDimensions,
onEnter = function()
lib.showTextUI(Lang:t("info.sell_coral_dt"))
end,
7 changes: 2 additions & 5 deletions config.lua
Original file line number Diff line number Diff line change
@@ -217,11 +217,8 @@ Config.PriceModifiers = {
}
Config.SellLocations = {
{
coords = vector4(-1684.13, -1068.91, 13.15, 100.0),
coords = vec4(-1684.13, -1068.91, 13.15, 100.0),
model = 'a_m_m_salton_01',
zoneOptions = { -- Only used when not using the target
length = 3,
width = 3
}
zoneDimensions = vec3(3, 3, 3), -- Only used when not using the target
}
}

0 comments on commit c02b26a

Please sign in to comment.