Entity::type: Difference between revisions
Felipe10fe (talk | contribs) |
|||
| Line 10: | Line 10: | ||
*marker | *marker | ||
*colshape | *colshape | ||
*textlabel | |||
==Getter== | ==Getter== | ||
Revision as of 08:19, 22 July 2018
Returns type of entity.
Available types:
- player
- vehicle
- object
- pickup
- blip
- checkpoint
- marker
- colshape
- textlabel
Getter
- String
Example
Server-Side
const entity = mp.players.at(0);
console.log(entity.type) // return 'player'