Entity::type: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
Returns type of entity.
Returns type of entity.


Available types:
==Available types:==
*player
*player
*vehicle
*vehicle
Line 10: Line 10:
*marker
*marker
*colshape
*colshape
==Getter==
* '''<span style="color:#008017">Number</span>'''


== Example ==
== Example ==

Revision as of 14:27, 13 May 2017

Returns type of entity.

Available types:

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

Getter

  • Number

Example

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

See Also