Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Resource setInheritAccess

From Catglobe Wiki

Resource_setInheritAccess

Set inherit access for a resource

Syntax

Resource_setInheritAccess(number ResourceId[, bool inherit]);

Arguments

number resourceRId: Resource unique id

bool inherit

Return type

Empty

Example

//inherit parameter is optional, can be empty. In this case inherit default will be set to true
number ResourceId = 11088827;
Resource_setInheritAccess(ResourceId);
Resource_isInheritAccess(ResourceId);//true

// set inherit to false
number ResourceId = 11088827;
bool inherit = false;
Resource_setInheritAccess(ResourceId, inherit);
Resource_isInheritAccess(ResourceId);//false