SetElementModel: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server client function}} Sets the model of a given element. This allows you to change the model of a player, a vehicle or an object. ==Syntax== <syntaxhighlight lang="lua"> bool setElementMod...) |
mNo edit summary |
||
Line 2: | Line 2: | ||
{{Server client function}} | {{Server client function}} | ||
Sets the model of a given element. This allows you to change the model of a player, a vehicle or an object. | Sets the model of a given element. This allows you to change the model of a player (or ped), a vehicle or an object. | ||
==Syntax== | ==Syntax== |
Revision as of 12:33, 28 March 2008
Sets the model of a given element. This allows you to change the model of a player (or ped), a vehicle or an object.
Syntax
bool setElementModel ( element theElement, int model )
Required Arguments
- theElement: the element you want to change.
- model: the model ID to set.
Returns
Returns true if successful, false otherwise.
See Also
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement