DooMknight Posted October 27, 2015 Share Posted October 27, 2015 Hi! First Im sorry for my bad english but, I need your help. I'm trying to add a new functional taxi model without replacing the one in the game. The new car works great when spawing it with a trainer. What should I do to respawn this new vehicle onto the traffic? Putting the car name in popgroups.ymt doesnt work: <Item> <Name>VEH_TAXI</Name> <models> <Item><Name>Taxi</Name><Variations type="NULL"/></Item> <Item><Name>Taxi3</Name><Variations type="NULL"/></Item> </models> <flags>POPGROUP_AMBIENT POPGROUP_SCENARIO</flags></Item> <Item> <Name>VEH_TRANSPORT</Name> <models> <Item><Name>Bus</Name><Variations type="NULL"/></Item> <Item><Name>Taxi</Name><Variations type="NULL"/></Item> <Item><Name>Taxi3</Name><Variations type="NULL"/></Item> <Item><Name>Coach</Name><Variations type="NULL"/></Item> </models> <flags>POPGROUP_AMBIENT POPGROUP_SCENARIO</flags></Item> Any suggestion? Thanks Link to comment Share on other sites More sharing options...
Mr.Arrow Posted October 27, 2015 Share Posted October 27, 2015 Try to make your car spawn at specific location (ex:Davis) See if it works Link to comment Share on other sites More sharing options...
_CP_ Posted October 27, 2015 Share Posted October 27, 2015 @DooMKnightChange these lines in vehicles.meta for your taxi3 to these one: <identicalModelSpawnDistance value="20" /> <maxNumOfSameColor value="10" /> <frequency value="80" /> <swankness>SWANKNESS_2</swankness> <maxNum value="999" /> Link to comment Share on other sites More sharing options...
DooMknight Posted October 27, 2015 Author Share Posted October 27, 2015 (edited) @DooMKnight Change these lines in vehicles.meta for your taxi3 to these one: <identicalModelSpawnDistance value="20" /> <maxNumOfSameColor value="10" /> <frequency value="80" /> <swankness>SWANKNESS_2</swankness> <maxNum value="999" /> Changed but nothing happens. In my previous post I forgot to say that the game does not recognize it (taxi3) as a taxi (taxi missions not appear), but if I replace the model "taxi" everything works perfectly. I think I should start there. There should be a file that controls the spawn of taxis, as there a dispatch.meta to control the cops spawn and can add new cops models. I will continue investigating... Try to make your car spawn at specific location (ex:Davis) See if it works How I can spawn vehicles to certain areas? What file(s) have to modify? Thanks for the previous answers Edited October 29, 2015 by DooMknight Link to comment Share on other sites More sharing options...
DooMknight Posted October 29, 2015 Author Share Posted October 29, 2015 (edited) I managed to spawn the taxi in traffic by adding the following lines to vehiclemodelsets.meta (update.rpf): But the problem persist, the car doesnt work as a taxi, simply a normal car. <Item type="CAmbientModelSet"><Name>taxi</Name><Models><Item><Name>taxi</Name><Variations type="NULL" /><Probability value="1.000000" /></Item> <Item><Name>taxi3</Name><Variations type="NULL" /><Probability value="1.000000" /></Item></Models></Item> [...]<Item type="CAmbientModelSet"><Name>NO_SMOKING_VEHICLES</Name><Models><Item><Name>dilettante2</Name><Variations type="NULL" /><Probability value="1.000000" /></Item>[...]<Item><Name>sherriff2</Name><Variations type="NULL" /><Probability value="1.000000" /></Item><Item><Name>taxi</Name><Variations type="NULL" /><Probability value="1.000000" /></Item> <Item><Name>taxi3</Name><Variations type="NULL" /><Probability value="1.000000" /></Item></Models></Item> Edited October 30, 2015 by DooMknight Link to comment Share on other sites More sharing options...
Fireboyd78 Posted October 30, 2015 Share Posted October 30, 2015 Models used for taxi missions are hard-coded into the scripts, so there's no way to add more unless you write a custom taxi mission script (which would probably be a lot of work). Link to comment Share on other sites More sharing options...
CamxxCore Posted October 30, 2015 Share Posted October 30, 2015 Models used for taxi missions are hard-coded into the scripts, so there's no way to add more unless you write a custom taxi mission script (which would probably be a lot of work). There are natives for assigning a script to an entity. So I wouldn't shut the door on it so quickly Link to comment Share on other sites More sharing options...
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