Jump to content

The wheel turned when exiting the car as MTA script?


Recommended Posts

Posted

Hello,

I have a nice idea,

it is possible to make the "The wheel turned when exiting the car for GTA San Andreas" mod for MTA? And save the turned wheel on a car in SQL ?

And how can i make it?

with a bot? I have seen on a bot script bug this effect.

Is this possible?

thanks for you listing :D

  • Moderators
Posted (edited)
i understood nothing from what you said. btw this forum is for helping in script not to request codes..

Regards ,,

He wants to do this:

Yeah, I would first try with shaders (but I'm a perfect noobs with shaders) because I think it's possible.

Otherwise I would use an invisible ped to do it. He will just press the forward button and freeze the car element.

But if you use a ped, then the car owner will probably do the carjack animation (even if you destroy the ped in the event onPlayerVehicleEnter, idk give it a try)

Also, if another crazy driver hit the car (which is frozen) the car won't go anywhere, so it's not really realistic.

Edited by Guest
Posted
i understood nothing from what you said. btw this forum is for helping in script not to request codes..

Regards ,,

He wants to do this:

Yeah, I would first try with shaders (but I'm a perfect noobs with shaders) because I think it's possible.

Otherwise I would use an invisible ped to do it. He will just press the forward button and freeze the car element.

But if you use a ped, then the car owner will probably do the carjack animation (even if you destroy the ped in the event onPlayerVehicleEnter, idk give it a try)

Also, if another crazy driver hit the car (which is frozen) the car won't go anywhere, so it's not really realistic.

If you want to add an youtube video just put the video 'code' Which is :

aFt3ZcCdyik

:)

  • Moderators
Posted

Haha yeah, I tried like the img tag, it didn't work in the preview, but I was hoping for it to work when I'll submit but it didn't xD

Posted
i understood nothing from what you said. btw this forum is for helping in script not to request codes..

Regards ,,

He wants to do this:

Yeah, I would first try with shaders (but I'm a perfect noobs with shaders) because I think it's possible.

Otherwise I would use an invisible ped to do it. He will just press the forward button and freeze the car element.

But if you use a ped, then the car owner will probably do the carjack animation (even if you destroy the ped in the event onPlayerVehicleEnter, idk give it a try)

Also, if another crazy driver hit the car (which is frozen) the car won't go anywhere, so it's not really realistic.

That's not what he wanted. He wants to save wheel rotation.

Posted
i understood nothing from what you said. btw this forum is for helping in script not to request codes..

Regards ,,

He wants to do this:

Yeah, I would first try with shaders (but I'm a perfect noobs with shaders) because I think it's possible.

Otherwise I would use an invisible ped to do it. He will just press the forward button and freeze the car element.

But if you use a ped, then the car owner will probably do the carjack animation (even if you destroy the ped in the event onPlayerVehicleEnter, idk give it a try)

Also, if another crazy driver hit the car (which is frozen) the car won't go anywhere, so it's not really realistic.

That's not what he wanted. He wants to save wheel rotation.

Yea i wanna have this

Thanks i will try this function :D but iam a noob scripter, its very defficult to do all thinks of GTA Sa Cleo mod,carmods.....

  • 7 months later...
Posted

Ok now on october i got this.

function radExit() 
local Vehicle = getVehicleController(source) 
local radLinks, radRechts = getVehicleComponentRotation(Vehicle, "wheel_lf_dummy"), getVehicleComponentRotation(Vehicle, "wheel_rf_dummy")  
setVehicleComponentRotation(Vehicle, radLinks) 
setVehicleComponentRotation(Vehicle, radRechts) 
    end 
addEventHandler("onVehicleExit", getRootElement(), radExit) 
  
  
  
function radEnter() 
   setVehicleComponentRotation(Vehicle, radLinks) 
   setVehicleComponentRotation(Vehicle, radRechts) 
 end 
addEventHandler("onVehicleEnter", getRootElement(), radEnter) 
  
  
  
  
function radRespawn() 
setVehicleComponentRotation(Vehicle, radLinks) 
setVehicleComponentRotation(Vehicle, radRechts) 
   end 
addEventHandler("onVehicleRespawn", getRootElement(), radRespawn) 
  

but the script dont help to do it, the script do not do anything :shock:

Any ideas?

Posted
  
radLinks, radRechts = nil, nil 
function radExit() 
local Vehicle = getVehicleController(source) 
radLinks, radRechts = getVehicleComponentRotation(source, "wheel_lf_dummy"), getVehicleComponentRotation(source, "wheel_rf_dummy") 
setVehicleComponentRotation(source, "wheel_If_dummy", radLinks) 
setVehicleComponentRotation(source, "wheel_rf_dummyr'", adRechts) 
    end 
addEventHandler("onVehicleExit", getRootElement(), radExit) 
  
  
  
function radEnter() 
if not radLinks then return end 
setVehicleComponentRotation(source, "wheel_If_dummy", radLinks) 
setVehicleComponentRotation(source, "wheel_rf_dummyr'", adRechts) 
 end 
addEventHandler("onVehicleEnter", getRootElement(), radEnter) 
  
  
  
  
function radRespawn() 
if not radLinks then return end 
setVehicleComponentRotation(source, "wheel_If_dummy", radLinks) 
setVehicleComponentRotation(source, "wheel_rf_dummyr'", adRechts) 
   end 
addEventHandler("onVehicleRespawn", getRootElement(), radRespawn) 
  
  

Posted

@Anubhav

Anubhav

Ok THANKS but it dont work, i think i have to use a other way to get the fix wheel turn back. But nil? if i exit the car he must set the wheel rotation to what i have in that moment.

Watch the video of the Cleo mod, then you know what i mean.

And why u rename the wheel_rf_dummy? It is the name of the right front wheel dummy

did u have a idea to make this? because when i exit the car, the player didnt control the car. How to fix that? :roll:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...