mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56: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)
|
local center = vec(xCoord, yCoord)
|
||||||
---@type vector2[]
|
---@type vector2[]
|
||||||
points = {
|
points = {
|
||||||
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)),
|
center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2,
|
||||||
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)),
|
center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
drawLines()
|
drawLines()
|
||||||
|
|||||||
Reference in New Issue
Block a user