RemoveResourceDefaultSetting: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | {{Server function}} | ||
{{Disabled|This function doesn't work actually. See [[#Issues|issues]] for more information.}} | |||
This function is used to remove a default setting from specified [[resource]]. | This function is used to remove a default setting from specified [[resource]]. | ||
<!-- What are default settings? --> | <!-- What are default settings? --> | ||
Line 25: | Line 26: | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Issues== | |||
{{Issues| | |||
{{Issue|5254|Does not work functions setResourceDefaultSetting and removeResourceDefaultSetting}} | |||
}} | |||
==See Also== | ==See Also== | ||
{{Resource_functions}} | {{Resource_functions}} |
Revision as of 15:59, 24 December 2014
Function has been disabled. | |
Reason/Note: This function doesn't work actually. See issues for more information. |
This function is used to remove a default setting from specified resource.
Syntax
bool removeResourceDefaultSetting ( resource theResource, string settingName )
Required Arguments
- theResource: the resource which setting is to be removed
- settingName: name of the default setting which is to be removed
Returns
Returns true if the default setting was successfully removed, false otherwise.
Example
This example would check if the server has the freeroam resource and removes the default settings called "spawnmaponstart".
addEventHandler("onResourceStart",resourceRoot,function() local freeroamRes = getResourceFromName("Freeroam") if(freeroamRes)then removeResourceDefaultSetting(freeroamRes,"spawnmaponstart") end end)
Issues
Issue ID | Description |
---|---|
#5254 | Does not work functions setResourceDefaultSetting and removeResourceDefaultSetting |
See Also
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo