NPC:OnNPCSpawn

From SA-MP Wiki

Revision as of 14:39, 9 December 2016; view current revision
←Older revision | Newer revision→
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!


Description:

Gets called when a NPC spawned.


Parameters:
(NoParam)


Return Values:

This function does not return any specific values.


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