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
- any "name"
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.
Related pages
- SetServerName
- SetPassword
- SetServerRule
- RemoveBuildingForPlayer
- SyncPlayerSkins
- ReloadScripts
- LoadScript
- UnloadScript
- GetScripts
- ToggleRagdollPhysics
- ToggleVehicleDents
- GetTickCount
Section: Server information and administration
Categories: Server functions | Server information and administration