NPC:OnNPCSpawn

From SA-MP Wiki

Jump to: navigation, search


NPC:OnNPCSpawn was added in SA-MP 0.3a This NPC callback was added in SA-MP 0.3a and will not work in earlier versions!


Gets called when a NPC spawned.


Parameters:
(NoParam)


ReturnsThis function doesn't return a specific value


public OnNPCSpawn()
{
    print("NPC spawned");
    SendChat("Hello World. I'm a bot.");
    return 1;
}
Personal tools