getBuildings: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Removed redirect to Gta.getBuildings)
Tag: Removed redirect
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = getBuildings
|side = client
|type = function
|type = function
|name = getBuildings
|games = iii vc sa iv
|usage = fetch all building handles
|desc = fetch all building handles
|parameters = void
|return = array an array of all buildings with syntax <code>array<int index, Building building></code>
|returnTypes = array
|freturn = array []
|returnInfo = an array of all buildings with syntax <code>array<int index, Building building></code>
|returnFail1 = array []
}}
}}

Latest revision as of 20:36, 19 November 2022

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

Available since Client 1.0.0

array getBuildings(void)

The getBuildings function is used to fetch all building handles.

Parameters

void This function doesn't take any parameters.

Return

array An array of all buildings with syntax array<int index, Building building>.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

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