NPC:OnNPCSpawn

From SA-MP Wiki

Jump to: navigation, search

NPC:OnNPCSpawn


Warning: This NPC callback was added in SA-MP version 0.3. It is not available in previous versions.


Gets called when a NPC spawned.


Parameters:
(NoParam)


This function does not return a specific value.


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