Need some help here. Why do copcars spawn in their respective cities, why does a LSPD copcar not spawn in SF or LV. How is this controlled by SA. If I need some of my modded car to spawn only in any particular city, what should I edit?? Not sure if someone asked this before, but couldnt find such a topic.
You can Make some cars spawn only in cities you choose but then you will have to change the cargrp.dat ,Popcycle.dat ,pedgrp.dat & you'll also have to edit the main.scm file such that the car you wish should not spawn anywhere else .I tried it with turismo and made it spawn only in Los Santos and it worked (atleast for now) .I searched other places for turismo but I didnt find I think it will work .Just check it out if any doubts You can ask me....
Here's an idea the might work with a little editing of cagrp.dat and a CLEO script. Add your vehicles to an appropriate car group, then check CJ's town number and disable the appropriate models as he moves from city to city with a cleo script. The relevant codes are listed below.
Keep in mind that car groups can only support 23 models; Causal Rich and Casual Average are already too full, which is why the Phoenix doesn't not spawn in traffic without some modifications.
04A3: $CURRENT_TOWN_NUMBER == 1 // $ == any 0842: $CURRENT_TOWN_NUMBER = player $PLAYER_CHAR town_number
It is possible to alter the car groups with CLEO memory writes. I can try to find the memory addresses if this is really important for sharing your mod or something. But it'd be easier to test with an altered cargrp.dat first.
This post has been edited by OrionSR on Sunday, Jul 1 2012, 20:56
If you get it working and want to change the car groups with CLEO the structure starts at 0xC0ED38. Each group is 46 bytes long and consists of 23 words. Each word is the vehicle ID for the cars in the group (Linerunner = 403).