DgsGetElementKeeperEnabled

From Multi Theft Auto: Wiki
Revision as of 23:22, 3 May 2021 by Lettify (talk | contribs) (DGS (OOP Syntax)/(Template Organization) Mission)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Syntax

bool dgsGetElementKeeperEnabled( ) 

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

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

Returns

Returns true if element keeper is enabled, false otherwise

Example

loadstring(exports.dgs:dgsImportFunction())()
dgsSetElementKeeperEnabled(true) --Use this function before creating DGS elements
print(dgsGetElementKeeperEnabled()) --Returns true

See Also

General Functions

General Events