Scripting/Client/Functions/CallServerFunc
Calls a server function that was whitelisted with RegisterRemoteFunc. Arguments: integer, float, string (70 chars), bool, null, Player and Vehicle handles. Returns false when not connected or the call could not be built.
Syntax
CallServerFunc("Main/Server.nut", "function" [, args...])Arguments
- any "Main/Server.nut"
- any "function"
- any args... (optional)
Returns
bool
Example
function onScriptLoad()
{
local result = CallServerFunc( 0, 0 );
MessagePlayer( "CallServerFunc returned: " + result, player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Utility
Categories: Client functions | Utility