MrGTAmodsgerman Posted March 4, 2014 Share Posted March 4, 2014 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 Link to comment
Hell-Mate Posted March 4, 2014 Share Posted March 4, 2014 i understood nothing from what you said. btw this forum is for helping in script not to request codes.. Regards ,, Link to comment
myonlake Posted March 4, 2014 Share Posted March 4, 2014 I am not sure if the vehicle components include wheels, but if they do, you have the setVehicleComponentRotation/Position functions at your disposal. Other than that, you can make it the hardcoded way with setPedAnalogControlState with a pedestrian inside the vehicle. Link to comment
Moderators Citizen Posted March 4, 2014 Moderators Share Posted March 4, 2014 (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 March 4, 2014 by Guest Link to comment
iPrestege Posted March 4, 2014 Share Posted March 4, 2014 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 Link to comment
Moderators Citizen Posted March 4, 2014 Moderators Share Posted March 4, 2014 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 Link to comment
myonlake Posted March 4, 2014 Share Posted March 4, 2014 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. Link to comment
MrGTAmodsgerman Posted March 5, 2014 Author Share Posted March 5, 2014 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 but iam a noob scripter, its very defficult to do all thinks of GTA Sa Cleo mod,carmods..... Link to comment
MrGTAmodsgerman Posted October 16, 2014 Author Share Posted October 16, 2014 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 Any ideas? Link to comment
Anubhav Posted October 16, 2014 Share Posted October 16, 2014 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) Link to comment
MrGTAmodsgerman Posted October 18, 2014 Author Share Posted October 18, 2014 @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? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now