🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page

Was this helpful?

  1. Game Classes

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.

PreviousSimObjectNextSimCharacter

Last updated 1 year ago

Was this helpful?

đŸ—ƒī¸
📮
More Info