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!


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;
}
Personal tools
In other languages