createBuilding

From GTA Connected
Jump to: navigation, search

Function Server and Client All Games Online and Offline

Server 1.1.0, Client 1.1.0

Description

The createBuilding function is used to create a building for the local client.

Parameters

Type Name Presence Default Value Description
int model required n/a The model ID for the building.

Returns

Success Returns

Type Description
Building An object representing the building that was created.

Failure Returns

Type Value
null n/a

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

  • This function was previously named game.createBuilding in version 1.0.71.

Related

Server Related

createBuilding

building.children
building.dimension
building.getData
building.getRotation
building.heading
building.id
building.interior
building.isType
building.matrix
building.modelIndex
building.name
building.onAllDimensions
building.parent
building.position
building.removeAllData
building.removeData
building.resource
building.setData
building.setRotation
building.setSyncer
building.syncer
building.type


Client Related

createBuilding
gta.getBuildings - Previous Name: getBuildings

building.alpha
building.boundingCentre
building.boundingMax
building.boundingMin
building.boundingRadius
building.centerOfMass
building.children
building.collisionPower
building.collisionsEnabled
building.dimension
building.distanceFromCentreOfMassToBaseOfModel
building.getData
building.getRotation
building.heading
building.id
building.interior
building.isLocal
building.isOnScreen
building.isSyncer
building.isType
building.markAsNoLongerNeeded
building.mass
building.matrix
building.modelIndex
building.name
building.parent
building.position
building.removeAllData
building.removeData
building.setData
building.setProofs
building.setRotation
building.status
building.syncer
building.type