set
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function is used to save arbitrary data under a certain name on the settings registry.
Syntax
set ( )Code Examples
server
This example sets a specified setting with a Value. This is alocalsetting belonging to the resource that the code is run in.
function setAclRights(playerElement, commandName, acl, value, type) if not acl or not value then return outputChatBox("Syntax: /setacl <acl> <value>") end if set ( acl, value ) then outputChatBox("Acl "..acl.." value set to "..value) print(getPlayerName(playerElement).." has changed "..acl.." to "..value) else outputChatBox("Error happened while changing the Acl "..acl.." value to "..value) print(getPlayerName(playerElement).." tried to change "..acl.." to "..value) endendaddCommandHandler("setacl", setAclRights)