UNPKG

@nativewrappers/client

Version:

Javascript/Typescript wrapper for the FiveM natives

16 lines (15 loc) 380 B
import { Entity } from './'; export class Prop extends Entity { static exists(prop) { return typeof prop !== 'undefined' && prop.exists(); } constructor(handle) { super(handle); } exists() { return super.exists() && GetEntityType(this.handle) === 3; } placeOnGround() { PlaceObjectOnGroundProperly(this.handle); } }