Removing Car Lots

I am working with GOTR files for this tutorial, because it is not a good idea to try to remove any business or property that is
original to the game. Since GOTR added a number of car lots to the game I am using it to demonstrate how to build and remove
one of them,

I will be removing the Stilwater Scrapyard that is located by the Brotherhood hideout and adding a new vehicle lot
The Municipal Vehicle Exchange in the Trailer Park district.

The first thing to s do is locate all of the mentions of the property that we wish to remove. In this case we have a few files to edit

Files To Edit.png
So we need to open up each file individually and search for scrap.

shops_sr2_city.xtbl
Code:
<Shop>
        <Name>DK Stilwater Scrapyard</Name>
        <Chain>SRM_Stilwater_Scrapyard</Chain>
        <Ownership_Trigger>shops_sr2_city_$DK_scrapyard_own</Ownership_Trigger>
        <Exterior_Elements>
            <Outside_Trigger>shops_sr2_city_$DK_scrapyard_store</Outside_Trigger>
            <Normal_Viewing_Navp>shops_sr2_city_$DK_scrapyard_cam1</Normal_Viewing_Navp>
            <Large_Viewing_Navp>shops_sr2_city_$DK_scrapyard_cam1</Large_Viewing_Navp>
            <Vehicle_Placement_Navp>shops_sr2_city_$DK_scrapyard_car</Vehicle_Placement_Navp>
            </Exterior_Elements>
        <Flags>
            <Flag>no_hostile_clerk</Flag>
            </Flags>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Shop>

shops_sr2_city.cts
Code:
# NAVPOINTS

$Navpoint:    "shops_sr2_city_$DK_scrapyard_own"
$Type:        "ground"
$Pos:            <-648.347290 -1 1591.363647>
$Orient:        [0.071715]

$Navpoint:    "shops_sr2_city_$DK_scrapyard_car"
$Type:        "ground"
$Pos:            <-644.647278 0 1614.618896>
$Orient:        [2]

$Navpoint:    "shops_sr2_city_$DK_scrapyard_store"
$Type:        "ground"
$Pos:            <-640.347290 0.1 1588.597046>
$Orient:        [1.552733]

$Navpoint:    "shops_sr2_city_$DK_scrapyard_cam1"
$Type:        "floating"
$Pos:            <-606.748657 13.593203 1632.064819>
$Orient:        [<-0.70710 0 0.70710> <-0.18301 0.96592 -0.18301> <-0.68301 -0.25881 -0.68301>]

#TRIGGERS

$Trigger:                "shops_sr2_city_$DK_scrapyard_own"
$Trigger type:            "bounding box"
$Trigger action:        "store ownership"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$DK_scrapyard_own"
+DemoDisabled
$Box size:                -1.000000 0.000000 -1.000000 1.000000 2.000000 1.000000
+Ignore Vehicles

$Trigger:                "shops_sr2_city_$DK_scrapyard_store"
$Trigger type:            "bounding box"
$Trigger action:        "car dealership"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$DK_scrapyard_store"
+DemoDisabled
$Box size:                -1.000000 0.000000 -1.000000 1.000000 2.000000 1.000000
+Ignore Vehicles

Shop_Names.xtbl
Code:
<Shop_Names>
        <Name>SRM_Stilwater_Scrapyard</Name>
        <_Editor>
            <Category>Shop Names</Category>
            </_Editor>
        <Level>0</Level>
        <Localized_Name>STILWATER SCRAPYARD</Localized_Name>
        <Ownership>
            <Cost>10000</Cost>
            <Income>2000</Income>
            <Discount>10</Discount>
            <Total_Owner_Discount>10</Total_Owner_Discount>
            </Ownership>
        </Shop_Names>

shops_sr2_city_navpoints.xtbl
Code:
<Navpoint>
<Name>shops_sr2_city_$DK_scrapyard_store</Name>
<_Editor>
<Category>Entries</Category>
</_Editor>
</Navpoint>
<Navpoint>
<Name>shops_sr2_city_$DK_scrapyard_car</Name>
<_Editor>
<Category>Entries</Category>
</_Editor>
</Navpoint>
<Navpoint>
<Name>shops_sr2_city_$DK_scrapyard_cam1</Name>
<_Editor>
<Category>Entries</Category>
</_Editor>
</Navpoint>
<Navpoint>
<Name>shops_sr2_city_$DK_scrapyard_cam2</Name>
<_Editor>
<Category>Entries</Category>
</_Editor>
</Navpoint>

shops_sr2_city_triggers.xtbl
Code:
<Trigger>
<Name>shops_sr2_city_$DK_scrapyard_own</Name>
<_Editor>
<Category>Entries</Category>
</_Editor>
</Trigger>
<Trigger>
<Name>shops_sr2_city_$DK_scrapyard_store</Name>
<_Editor>
<Category>Entries</Category>
</_Editor>
</Trigger>

Car_Dealershops.xtbl
Code:
<Dealership>
        <Name>SRM_Stilwater_Scrapyard</Name>
        <VehicleList>
            <Element>
                <Vehicle>sp_eltrain_01</Vehicle>
                <Variant>El Train Front</Variant>
                <Cost>60000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_eltrain_01</Vehicle>
                <Variant>El Train Rear</Variant>
                <Cost>60000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_el_train_cutscene</Vehicle>
                <Variant>Default</Variant>
                <Cost>60000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                 <Vehicle>sp_hearse02_interior</Vehicle>
                <Variant>Boss vehicle</Variant>
                <Cost>1000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                 <Vehicle>heli_4dr_police02</Vehicle>
                <Variant>Police</Variant>
                <Cost>31000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                 <Vehicle>heli_4dr_police02</Vehicle>
                <Variant>News</Variant>
                <Cost>31000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                 <Vehicle>heli_4dr_police02</Vehicle>
                <Variant>Brotherhood</Variant>
                <Cost>50000</Cost>
                <Type>Misc</Type>
                </Element>


            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_01_lvl0</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_01_lvl1</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_01_lvl2</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_03_lvl0</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_03_lvl1</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_03_lvl2</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_05_lvl0</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_05_lvl1</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_05_lvl2</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_07_lvl0</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_07_lvl1</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
            <Element>
                <Vehicle>sp_derbycar01</Vehicle>
                <Variant>derby_07_lvl2</Variant>
                <Cost>500000</Cost>
                <Type>Misc</Type>
                </Element>
        </VehicleList>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        <allow_rotation>yes</allow_rotation>
        </Dealership>

To completely remove the car lot each one of these files has to be edited and
each section containing 'scrap' has to be removed.

That's all there is to removing a car lot.
Building a car lot is basically just reversing the steps in the previous section.

Just keep in mind that you can not omit the cameras or the new car lot will crash your game.

Also, when you build a new vehicle lot you are going to need some vehicles. To solve that problem all I did was
remove some of the vehicles from Blue Collar Supply and added them to the new dealership.

Note: When creating the new dealership watch your spelling and capitalization, because a mistake can cause game
crashes. Also make sure that your variable names are the same. Lastly watch the $ carefully. Sometimes it is needed
and sometimes it is not.
 
Last edited:
Back
Top