RemoveAllGameBuildings: Difference between revisions
Jump to navigation
Jump to search
TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22420|This function is used to remove all world buildings and frees building pool.}} ==Syntax== <syntaxhighlight lang="lua">nil removeAllGameBuildings ( )</syntaxhighlight> ===Returns=== Nothing ==See Also== {{Building functions}}") |
|||
(8 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
{{Client function}} | {{Client function}} | ||
{{New feature/item|3.0161|1.6.0|22420|This function is used to remove all world buildings and frees building pool.}} | {{New feature/item|3.0161|1.6.0|22420|This function is used to remove all world buildings and frees building pool.}} | ||
{{Note|This function does not affect buildings created using the [[createBuilding]] function}} | |||
{{Deprecated|removeGameWorld|See [https://github.com/multitheftauto/mtasa-blue/pull/3627 this pull request].}} | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">nil removeAllGameBuildings ( )</syntaxhighlight> | <syntaxhighlight lang="lua">nil removeAllGameBuildings ( )</syntaxhighlight> | ||
Line 8: | Line 9: | ||
===Returns=== | ===Returns=== | ||
This function does not return any value. | |||
==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
![]() |
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