RemoveAllGameBuildings: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:


===Returns===
===Returns===
Nothing
This function does not return any value.


==Example==
==Example==
{{Needs Example}}
This example removes game buildings.
<syntaxhighlight lang="lua">
addEventHandler("onClientResourceStart", resourceRoot, function()
    removeAllGameBuildings()
end)
</syntaxhighlight>


==See Also==
==See Also==
{{Building functions}}
{{Building functions}}

Latest revision as of 11:25, 30 June 2025

ADDED/UPDATED IN VERSION 1.6.0 r22420:
This function is used to remove all world buildings and frees building pool.
[[{{{image}}}|link=|]] Note: This function does not affect buildings created using the createBuilding function
Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use removeGameWorld instead. See this pull request.

Syntax

nil removeAllGameBuildings ( )


Returns

This function does not return any value.

Example

This example removes game buildings.

addEventHandler("onClientResourceStart", resourceRoot, function()
    removeAllGameBuildings()
end)

See Also