Entity::type

From RAGE Multiplayer Wiki
Revision as of 10:15, 30 April 2019 by RoboN1X (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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) // returns 'player'

See Also