You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]engineRequestModel("vehicle") doesn't work with utiliy vehicles[/-][+]engineRequestModel("vehicle") doesn't load default GTA scripts[/+]on Nov 22, 2020
#1701 explicitly states that this kind of behaviours do not work:
Does not work:
Сhassis
Turrets
ZR-350 opening headlights
Rhino, Hydra, Skimmer, Seasparrow
Some specific effects like a dust effect from some helicopters, smoke effects from bikes.
Another hardcoded stuff
I guess this is caused because somewhere in GTA code they are limited to a specific vehicle ID. If that's the case, for these to work, the affected methods would need to be patched.
Bumping this. A lot of people have messaged me in regards to my resource newmodels saying that added vehicles can't have features like attaching trailers, having water hose etc... It's a popular demand
It's possible to fix all these things, and it's not even that hard.
It just requires someone to sit down, and find the code for the things and patch it accordingly.
....and then deal with the crashes caused by it :D
Its best to refactor the code to use new handling flags to determine if vehicle is able to tow, and what its able to tow.
Split trailers into groups, add flags for vehicles(noe trailers, except ARTICT3) like:
towHitch(can tow anything that is not trailer, can tow vehicles, planes etc)
towUtility(can tow utility trailer)
towTruck(can tow truck-trailers)
towBaggage(can tow airport trailers)
Worth mentioning:MODEL_ARTICT3 can tow other truck-trailers according to code, but im not sure if its possible within the game actually.
Would look like:
Activity
[-]engineRequestModel("vehicle") doesn't work with utiliy vehicles[/-][+]engineRequestModel("vehicle") doesn't load default GTA scripts[/+]AlexTMjugador commentedon Nov 23, 2020
#1701 explicitly states that this kind of behaviours do not work:
I guess this is caused because somewhere in GTA code they are limited to a specific vehicle ID. If that's the case, for these to work, the affected methods would need to be patched.
qaisjp commentedon Nov 23, 2020
The wiki should be updated to include this information. That article is also missing correct versioning usage
Xenius97 commentedon Nov 27, 2020
Trains doesn't work too.
Fernando-A-Rocha commentedon Oct 24, 2021
🤔 Is it possible to fix this at this stage?
Pirulax commentedon Nov 11, 2021
Would require to patch tons of code, so no, not really.
Special features are hard coded based on modelID.
TheNormalnij commentedon Nov 11, 2021
I think it's still hackable. When i added vehicle allocation i thought about a
setVehicleModelFeatureState
functionlopezloo commentedon Mar 9, 2023
I think it could be implemented like that:
mtasa-blue/Client/multiplayer_sa/CMultiplayerSA.cpp
Lines 5755 to 5794 in eedbdc5
Hooking in place of these ID checks and calling vehicle entity method to check if specific feature is enabled for specific vehicle element.
So MTA API might look like this:
In some places there might be no vehicle entity available though in theory. It would be great to document all the missing features.
Fernando-A-Rocha commentedon Sep 8, 2023
Bumping this. A lot of people have messaged me in regards to my resource newmodels saying that added vehicles can't have features like attaching trailers, having water hose etc... It's a popular demand
Pirulax commentedon Oct 7, 2023
It's possible to fix all these things, and it's not even that hard.
It just requires someone to sit down, and find the code for the things and patch it accordingly.
....and then deal with the crashes caused by it :D
Allerek commentedon Feb 8, 2025
All explained here:
https://discord.com/channels/801330706252038164/801411628600000522/1337796574679662612
(MTA SA Dev discord)
Its best to refactor the code to use new handling flags to determine if vehicle is able to tow, and what its able to tow.
Split trailers into groups, add flags for vehicles(noe trailers, except ARTICT3) like:
towHitch(can tow anything that is not trailer, can tow vehicles, planes etc)
towUtility(can tow utility trailer)
towTruck(can tow truck-trailers)
towBaggage(can tow airport trailers)
Worth mentioning:MODEL_ARTICT3 can tow other truck-trailers according to code, but im not sure if its possible within the game actually.
Would look like:
Fernando-A-Rocha commentedon Feb 13, 2025
@Allerek 's idea is legitimate!
Discussion continues @ https://discord.com/channels/801330706252038164/801411628600000522/1339638802968481915