mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(client/zoneCreator): box zone length and width
This commit is contained in:
@@ -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