Skip to main content

AllowOnServer

This function was added in DSL 7

Description

This is a header function, meaning it is meant to go on the top of your main script as an alternative to using config.txt.

Similar to setting allow_on_server in config (which is usually the better option), this will allow your script to keep running even when connected to a server.

function AllowOnServer() --[[ ... ]] end

Parameters

None.

Return Values

None.

Example

AllowOnServer()

-- Your script code here

function main()
-- Your script code here
end