RestoreAllGameBuildings

From Multi Theft Auto: Wiki
Revision as of 11:26, 30 June 2025 by O22 (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22420:
This function cancels removeAllGameBuildings effect
[[{{{image}}}|link=|]] Note: This function can destroy some scripted buildings if the building pool does not have enough free space for game buildings.
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 restoreGameWorld instead. See this pull request.

Syntax

nil restoreAllGameBuildings ( )


Returns

This function does not return any value.

Example

This example restores game buildings.

addEventHandler("onClientResourceStop", resourceRoot, function()
    restoreAllGameBuildings()
end)

See Also