📮SimObjectProp

General game-prop, properties & functions are derived from SimObject.

Static Functions:

.Create

SimObjectProp.Create(model: Hash, coords: Vector3, rotation: Vector3): SimObjectProp

Argument
Type
Description

model

Hash

coords

Vector3

Position of new Prop

rotation

Vector3

Rotation of new Prop

Returns SimObjectProp object when successfully created.

.Get

SimObjectProp.Get(object: SimObject): SimObjectProp

Argument
Type
Description

object

SimObject

Valid SimObject

This will cast SimObject to SimObjectProp use this only if you know what you're doing!

.IsAttached

SimObjectProp.IsAttached(): boolean

Returns true if prop is currently attached, otherwise false.

.GetAttachBone

SimObjectProp.GetAttachBone(): string

Returns name of the attach bone (CharacterBone), otherwise null if doesn't exist.

.GetPropBone

SimObjectProp.GetPropBone(): string

Returns name of the prop bone, otherwise null if doesn't exist.

Last updated