-
-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added check for spawned vehicles not on all wheels then it rotates #1185
Conversation
Added a check if spawned vehicle isn't on all wheels, then it rotates
Added check if spawned vehicle isn't on all wheels, then it rotates
Added a check on spawn vehicle if not on all wheels, then it rotates
if not IsVehicleOnAllWheels(vehicle) then | ||
local carCoords = GetEntityRotation(vehicle, 2) | ||
Wait(500) | ||
SetEntityRotation(vehicle, carCoords[1], 0, carCoords[3], 2, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this 1-3 index all time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, tried with all kind of vehicles (mostly addons trailers, boats and planes) and it works well, cause it put the rotation from side of the chassis in the longitudinal axis
You can try with this trailer who spawn upside-down https://www.gta5-mods.com/vehicles/brute-camp-trailer-addon
@Manta95 Hi! This is not working, I can't accept this because it requires a newer artifact or gamebuild version. This should include some condition testing to make it work if all conditions are met. |
Ok, it's not about artifact nor gamebuild, it's the native that didn't work server side. I try to find a fix for this |
I was thinking that under a given version it is not native yet, that's why I wrote this, but it could be a different problem. |
No description provided.