Interface administrators, moderator
2,783
edits
m (Mex moved page Element.id to element.id) |
No edit summary |
||
| Line 8: | Line 8: | ||
|usage = fetch the integer ID of the element | |usage = fetch the integer ID of the element | ||
|returnInfo = the integer ID of the element | |returnInfo = the integer ID of the element | ||
|notes = | |notes = All elements ''share the same ID pool''. For example, ID 1 could be a vehicle, ID 2 a player ped, ID 3 an object, ID 4 another vehicle, and so on.<br /> | ||
The ''ID's are not recycled''. For example, if you spawn 5 vehicles which are assigned ID's 1 through 5, then remove ID 3, the next element to be spawned will get an ID of 6 (not 3).<br /> | |||
Do not confuse this ID with [[client.index|client.index]], which is a separate pool of ID's. Also client is NOT a player ped as you would expect from other multiplayer mods. See [[ClientsAndPlayers|this page]] for more information on that. | |||
}} | }} | ||