UNPKG

@nativewrappers/client

Version:

Javascript/Typescript wrapper for the FiveM natives

10 lines (9 loc) 276 B
import { EntityBone, Ped } from './'; export class PedBone extends EntityBone { constructor(owner, boneId) { super(owner, GetPedBoneIndex(owner.Handle, Number(boneId))); } get IsValid() { return Ped.exists(this.Owner) && this.Index !== -1; } }