Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

Manta95
Copy link

@Manta95 Manta95 commented Aug 24, 2023

No description provided.

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)
Copy link
Contributor

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?

Copy link
Author

@Manta95 Manta95 Aug 25, 2023

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

@Gellipapa
Copy link
Contributor

@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.

(Only test /car command and get this in server console)
image

@Manta95
Copy link
Author

Manta95 commented Aug 25, 2023

@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.

(Only test /car command and get this in server console) image

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

@Gellipapa
Copy link
Contributor

@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.
(Only test /car command and get this in server console) image

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.

@Gellipapa Gellipapa marked this pull request as draft August 29, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants