Fixed Error made

This commit is contained in:
Cooldude2606
2017-08-21 10:59:23 +01:00
parent 1f1f5e4de4
commit 8167618333
2 changed files with 3 additions and 1 deletions

View File

@@ -110,7 +110,8 @@ See code for more details.
* value (opt) = new value if making a new temp varible
* offset (opt) = if the base time is too short, for very big commands
* format_as_temp_var(string)
* returns the same value that sudo would with out running the function
* returns the same value that sudo would when given a custom return name
* note only works when there is a custom return name else temp var is nil
* command: /server-interface
* Run loadstring on lua code given like /c but does not break achievements
* restriction = 'Admin'

View File

@@ -44,6 +44,7 @@ function sudo(command,args,custom_return_name)
end
--turns a string into the temp var format so that it can be used
function format_as_temp_var(string)
refresh_temp_var(string)
return {sudo='sudo-temp-var',name=tostring(string)}
end
--update the time on a temp var or add it as a new one