_IS_SPAWN_POSITION_VALID_FOR_TRAIN
Return true if the specified train can be spawned at the location (automatically snap to the nearest track from coords) with the direction.
VEHICLEBuild 1207
Signature
lua
IsSpawnPositionValidForTrain(GetHashKey("..."), 0.0, 0.0, 0.0, true, true)
-- returns BOOLParameters
| Name | Type | Description |
|---|---|---|
| Hash | — | |
| float | — | |
| float | — | |
| float | — | |
| BOOL | — | |
| BOOL | — |
Usage
lua
IsSpawnPositionValidForTrain(GetHashKey("..."), 0.0, 0.0, 0.0, true, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
