A Station is a building or place in the game world used by an Agency
The main purpose that Stations serve is to provide a location where the player can access the Duty, Locker and Garage menus - they are the place where the player goes either on or off duty.
Stations are interacted with by entering them, which can be done at the defined position (usually the main door). As most buildings in Grand Theft Auto V are not enterable, the player will appear in the Locker Room after a short fade. The only exception to this is the Downtown Police Station, which actually has a functional interior that the player can simply walk into.
By default, LSPDFR already provides definitions for all police and sheriff stations that exist within the game world, with the exception of the two minor police outposts in Del Perro Beach and Vespucci Beach.
Stations are referenced by their ScriptName.
Elements
| Element Name | Type | Required | Description |
|---|---|---|---|
| Name | Text | Yes | The name of the Station, e.g. Rockford Hills Police Station |
| Agency | Agency | Yes | The Agency that this station belongs to. |
| ScriptName | Text | Yes | This is a unique identifier for this station, which is used to cross-reference it in code and other data. This should not be changed for the Downtown Police Station. |
| Position | Position | Yes | The Position at which the station can be entered from (this is typically the position of the front door) |
| Heading | Number | Yes | The heading (angle in degrees) of the above position. For a door that is facing East, this would be 270.0 |
| GaragePosition | SpawnPoint | No | A SpawnPoint that represents the position at which the Police Garage should be entered from, and the angle of this position. |
| GarageSpawnPosition | SpawnPoint | No | A SpawnPoint that represents where a Vehicle selected from the Police Garage should be spawned. |
| DropOffPosition | SpawnPoint | No | The position where persons that the player arrests should be brought to so that they can be jailed. |
| AmbientSpawns | - | No | A container for one or more AmbientSpawnInfo elements. These can be used to add vehicles and peds that will be placed around the station. |
Example
<Station> <Name>Los Santos Intl. Airport Field Office</Name> <Agency>noose</Agency> <ScriptName>lsxAirport</ScriptName> <Position>-864.61f, -2408.92f, 14.03f</Position> <Heading>60</Heading> <CamEndOffset>-17f, -43f, 3f</CamEndOffset> <CamPointOffset>10f, -5f, 1f</CamPointOffset> <DropOffPosition>-864.7288f, -2363.617f, 13.42871f</DropOffPosition> <PrisonBusPosition>-861.2222f, -2346.491f, 14.21414f</PrisonBusPosition> <PrisonBusHeading>86</PrisonBusHeading> <GaragePosition>-887.7394f, -2373.455f, 14.02436f; 140f</GaragePosition> <GarageSpawnPosition>-897.2624f, -2384.005f, 13.5493f; 148f</GarageSpawnPosition> </Station>
Ambient Spawn Example
<Station> <Name>Grapeseed Police Office</Name> <Agency>saspa</Agency> <Scriptname>grapepol</Scriptname> <Position>1656.82, 4851.67, 41.99</Position> <Heading>270</Heading> <DropOffPosition>1637.666, 4849.198, 41.645</DropOffPosition> <AmbientSpawns> <SpawnPoint chance="100" position="1662.120, 4848.670, 41.568" heading="186.141" type="vehicle"> </SpawnPoint> <SpawnPoint chance="70" position="1645.404, 4820.484, 41.751" heading="278.061"> <Vehicle>POLICE2</Vehicle> </SpawnPoint> <SpawnPoint chance="100" position="1657.298, 4849.098, 41.987" heading="308.446"> <Ped outfit="gspd_class_a.m_lieutenant">mp_m_freemode_01</Ped> </SpawnPoint> </AmbientSpawns> </Station>
Recommended Comments