mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(client/zoneCreator): rotation output
This commit is contained in:
@@ -171,7 +171,7 @@ local function startCreator(arg)
|
||||
if zoneType == 'poly' then
|
||||
drawLines()
|
||||
elseif zoneType == 'box' then
|
||||
local rad = math.rad(heading)
|
||||
local rad = math.rad(-heading)
|
||||
local sinH = math.sin(rad)
|
||||
local cosH = math.cos(rad)
|
||||
local center = vec(xCoord, yCoord)
|
||||
@@ -248,17 +248,17 @@ local function startCreator(arg)
|
||||
change = true
|
||||
zCoord -= steps[1][step]
|
||||
elseif IsDisabledControlJustReleased(0, 38) then -- e
|
||||
change = true
|
||||
heading += steps[2][step]
|
||||
if heading >= 360 then
|
||||
heading -= 360
|
||||
end
|
||||
elseif IsDisabledControlJustReleased(0, 44) then -- q
|
||||
change = true
|
||||
heading -= steps[2][step]
|
||||
if heading < 0 then
|
||||
heading += 360
|
||||
end
|
||||
elseif IsDisabledControlJustReleased(0, 44) then -- q
|
||||
change = true
|
||||
heading += steps[2][step]
|
||||
if heading >= 360 then
|
||||
heading -= 360
|
||||
end
|
||||
elseif IsDisabledControlJustReleased(0, 47) then -- g
|
||||
change = true
|
||||
if displayMode == #displayModes then
|
||||
|
||||
Reference in New Issue
Block a user