UNPKG

@overextended/ox_lib

Version:
15 lines (14 loc) 397 B
import { context } from '../..'; import { GameEntity } from '../Entity'; export class Prop extends GameEntity { type = 'Prop'; constructor(handle) { super(); this.setHandle(handle); } setOnGround() { if (context === 'client') return PlaceObjectOnGroundProperly(this.handle); return this.set('ox_entity_setonground', true, true); } }