RestoreAllGameBuildings: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| TheNormalnij (talk | contribs) mNo edit summary | |||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| __NOTOC__   | __NOTOC__   | ||
| {{Client function}} | {{Client function}} | ||
| {{New feature/item|3.0161|1.6.0|22420|This function cancels [[removeAllGameBuildings]]  | {{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 this pull request].}} | |||
| ==Syntax==   | ==Syntax==   | ||
| <syntaxhighlight lang="lua">nil restoreAllGameBuildings ( )</syntaxhighlight>   | <syntaxhighlight lang="lua">nil restoreAllGameBuildings ( )</syntaxhighlight>   | ||
| Line 8: | Line 9: | ||
| ===Returns=== | ===Returns=== | ||
| This function does not return any value. | |||
| ==Example== | |||
| This example restores game buildings. | |||
| <syntaxhighlight lang="lua"> | |||
| addEventHandler("onClientResourceStop", resourceRoot, function() | |||
|     restoreAllGameBuildings() | |||
| end) | |||
| </syntaxhighlight> | |||
| ==See Also== | ==See Also== | ||
| {{Building functions}} | {{Building functions}} | ||
Latest revision as of 11:26, 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 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