getPeds: Difference between revisions

302 bytes added ,  29 December 2021
no edit summary
No edit summary
 
No edit summary
Line 10: Line 10:
|bcName = game.getPeds
|bcName = game.getPeds
|returnFail1 = array []
|returnFail1 = array []
|notes = The returned array includes both players AND civilian/npc peds! To use only NPCs, try <code>!element.isType(ELEMENT_PLAYER)</code> or <code>element.type != ELEMENT_PLAYER</code> when using this array.<br />
Element type ELEMENT_CIVILIAN was removed in client/server 1.3.1, so use ELEMENT_PED
}}
}}
2,603

edits