gta.swapNearestBuildingModel

Revision as of 07:22, 9 July 2022 by Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = shared |type = function |name = gta.swapNearestBuildingModel |parameters = Vec3 position, Float range, String oldModelName, String newModelName |param...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Available since Server 1.0.0, Client 1.0.0

void gta.swapNearestBuildingModel(Vec3 position, Float range, String oldModelName, String newModelName)

The gta.swapNearestBuildingModel function is used to swaps a building model for another.

Parameters

1) Vec3 position .
2) Float range .
3) String newModelName .

Return

void This function doesn't return a value.

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

Server Related

        getBuildingCount
        getBuildings
        gta.createBuilding

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


Client Related

      getBuildingCount
      getBuildings
      gta.createBuilding
      gta.swapNearestBuildingModel
      gta.undoBuildingSwaps