RestoreAllGameBuildings: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
add deprecated warning
No edit summary
Line 3: Line 3:
{{New feature/item|3.0161|1.6.0|22420|This function cancels [[removeAllGameBuildings]] effect}}
{{New feature/item|3.0161|1.6.0|22420|This function cancels [[removeAllGameBuildings]] effect}}
{{Note|This function can destroy some scripted buildings if the building pool does not have enough free space for game buildings.}}
{{Note|This function can destroy some scripted buildings if the building pool does not have enough free space for game buildings.}}
{{Deprecated|restoreGameWorld|See [https://github.com/multitheftauto/mtasa-blue/pull/3627 mtasa-blue PR #3627]}}
{{Deprecated}}
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">nil restoreAllGameBuildings ( )</syntaxhighlight>  
<syntaxhighlight lang="lua">nil restoreAllGameBuildings ( )</syntaxhighlight>  

Revision as of 23:09, 22 October 2024

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.
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.

Syntax

nil restoreAllGameBuildings ( )


Returns

Nothing

Example

Script Example Missing Function RestoreAllGameBuildings needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also