Attributes
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| heading | Number | Yes | The heading (angle in degrees) for the spawn. This is the angle that the Ped or Vehicle should face (e.g. facing West has a heading of 270). |
| position | Position | Yes | The position in 3D coordinates (x, y, z) for the spawn. |
| type | Text | No | Whether this spawn should be for a Vehicle or a Ped. This should only be used if you want a randomly selected Ped or Vehicle to spawn, and have not specifically defined one as shown below. |
| chance | Number | No | The percentage chance (0 to 100) that this spawn will be selected. |
Example
<AmbientSpawns> <SpawnPoint chance="50" position="360.97, -1584.70, 29.29" heading="90"> <Ped inventory="default">s_f_y_sheriff_01</Ped> <!-- A female sheriff that spawns at the Davis Station --> </SpawnPoint> </AmbientSpawns>
An example of making a Ped spawn outside a Station.
Edited by Sam
Recommended Comments