Drawbox align ( i don't know is this right )

Hey I want to draw a box in parking when players in parking they can put their car in parking so I did that and create a function that check if player stay in a rectangle ( I give two coord x1,x2…) but when I finish it I saw player can also park their car in out of parking so I draw a box to see what’s wrong


If you can see the box in photo you can recognize that the rectangle is not straight I think its because the map I want to know how I can fix this or anyone did have this issue?

you need the rotation angle as well as xzy

in codewalker, add an entity such as a container and line it up with the parking lines and copy the rotation angle from that and then apply to your script

Thats crazy I think i’m good with circle but I mark it as solution

How I can rotate drawbox?