mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-14 09:13:56 +00:00
fix(client/zoneCreator): box zone length and width
This commit is contained in:
1 parent
30c004b486
commit
6fdc1973e4
1 file changed
+4
-4
@@ -177,10 +177,10 @@ local function startCreator(arg)
|
||||
local center = vec(xCoord, yCoord)
|
||||
---@type vector2[]
|
||||
points = {
|
||||
center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)),
|
||||
center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)),
|
||||
center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)),
|
||||
center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)),
|
||||
center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)) / 2,
|
||||
center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2,
|
||||
center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)) / 2,
|
||||
center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2,
|
||||
}
|
||||
|
||||
drawLines()
|
||||
|
||||
Reference in new issue
Block a user