Open TTox421 opened 1 year ago
Are you talking about client or serverside? Also only use english in issues.
Are you talking about client or serverside? Also only use english in issues.
Okay, but I don't know English, so this may not be an accurate translation. I think it would be useful to add this method for both client and server.
Description of the problem
To get the coordinates or rotation of an entity, we use the entity.pos or entity.rot property. I wrote a system that depended on accurate entity.rot data, but it turned out that entity.rot is updated about every 0.5 radians, or every 2 degrees. Therefore, I had to look for a native function that determines the position of the player and the turn more accurately.
Desired solution for the problem
Add a method for Entity that will allow you to take the exact coordinates of the client, which will allow you to more accurately determine the position of the player or his turn.
Alternatives you considered
No response
Additional context
A native function that accurately returns the player's position - https://natives.altv.mp/#/0x3FEF770D40960D5A A native function that accurately returns the player's turn - https://natives.altv.mp/#/0xAFBD61CC738D9EB9
Version
13.47 (release)