GetNPCCount
From Onset Developer Wiki
Description
Get the number of spawned NPCs.
Syntax
GetNPCCount()
Parameters
- This function has no parameters.
Return Value
- Returns the NPC count.
Example
AddCommand("npc", function(playerid)
AddPlayerChat(playerid, "Total NPC count: "..GetNPCCount()..".")
end)
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime