- Documentation
- Server functions
- setGarageBounds
Function
setGarageBounds
Provides a garage's position and size so that getGaragePosition, getGarageSize and getGarageBoundingBox work (the server does not know the game's garage data).
Syntax
bool setGarageBounds(int garage, float x, float y, float z [, float sizeX = 0, float sizeY = 0, float sizeZ = 0])Arguments
garageint- Garage number.
xfloat- Garage centre X.
yfloat- Centre Y.
zfloat- Floor Z.
sizeXfloat, optional = 0- Width (m).
sizeYfloat, optional = 0- Length (m).
sizeZfloat, optional = 0- Height (m).
Returns
true on success.
Example
setGarageBounds(8, 2071, -1831, 13.5, 8, 10, 5)