From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function only works with dgsImportFunction and dgsImportOOPClass

This function gets whether current resource enables DGS element keeper.

What is DGS Element Keeper?

For example : Resource A enables DGS element keeper. When DGS stops, every DGS element will be kept but not rendered till the next time DGS starts, everything remains the same as before.


bool dgsGetElementKeeperEnabled( ) 

DGS OOP Syntax Help! I don't understand this!

Method: dgsRootInstance:getElementKeeperEnabled(...)
Counterpart: dgsSetElementKeeperEnabled


Returns true if element keeper is enabled, false otherwise


dgsSetElementKeeperEnabled(true) --Use this function before creating DGS elements
print(dgsGetElementKeeperEnabled()) --Returns true

See Also

General Functions

General Events