gta.createBuilding: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page createBuilding to gta.createBuilding)
(No difference)

Revision as of 00:18, 11 December 2019

Function Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.1.0, Client 1.1.0

Building gta.createBuilding(int model)

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

Parameters

1) int model The model ID for the building.

Return

Building An object representing the building that was created.

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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png getBuildingCount
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getBuildings
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.createBuilding

icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.children
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.clearExistsFor
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.dimension
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.existsFor
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.getData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.getRotation
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.heading
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.id
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.interior
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.isCreatedFor
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.isLocal
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.isOwner
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.isSyncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.isType
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.matrix
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.modelIndex
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.name
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.netFlags
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.parent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.position
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.removeAllData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.removeData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.resource
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.rotation
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.setData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.setExistsFor
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.setRotation
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.setSyncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.streamInDistance
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.streamOutDistance
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.syncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.syncerId
icon-iii.png icon-vc.png icon-sa.png icon-iv.png building.type


Client Related

icon-iii.png icon-vc.png icon-sa.png getBuildingCount
icon-iii.png icon-vc.png icon-sa.png getBuildings
icon-iii.png icon-vc.png icon-sa.png gta.createBuilding
icon-iii.png icon-vc.png icon-sa.png gta.swapNearestBuildingModel
icon-iii.png icon-vc.png icon-sa.png gta.undoBuildingSwaps