Entity::type

From RAGE Multiplayer Wiki
Revision as of 14:40, 16 January 2018 by Toxsi (talk | contribs) (→‎Example)

Returns type of entity.

Available types:

  • player
  • vehicle
  • object
  • pickup
  • blip
  • checkpoint
  • marker
  • colshape

Getter

  • String

Example

Server-Side

const entity = mp.players.at(0);
console.log(entity.type) // return 'player'

See Also