Scripting/Server/Functions/LoadModule

Loads the native module Modules/name.dll (Windows) or Modules/name.so (Linux) and calls its SQLoad. See "Native modules" in the appendix.

Syntax

LoadModule("name")

Arguments

Returns

bool

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "loadmodule" )
	{
		local result = LoadModule( 0 );
		MessagePlayer( "LoadModule returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Server information and administration

Categories: Server functions | Server information and administration