Click or drag to resize

IServerServiceConnectNpc Method

Connect an NPC to the server.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
void ConnectNpc(
	string name,
	string script
)

Parameters

name
Type: SystemString
The name the NPC should connect as. Must follow the same rules as normal player names.
script
Type: SystemString
The NPC script name that is located in the npcmodes folder (without the .amx extension).
See Also