EngineRequestModel: Difference between revisions
Jump to navigation
Jump to search
m (reveerted) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | |||
{{New feature/item|3.0160|1.5.7|20147|This function is used to assign the next available model ID to a certain element type. Currently only "ped" is supported.}} | |||
{{Note| | |||
Needs checking / improving.}} | |||
==Syntax== | |||
<syntaxhighlight lang="lua"> | |||
bool engineRequestModel ( str elementType ) | |||
</syntaxhighlight> | |||
===Required Arguments=== | |||
*'''elementType''': this must be "ped". | |||
===Returns=== | |||
Returns an ''integer'' of the model ID that was available to be assigned to the element type, ''false'' if no free model ID available or invalid element type. | |||
==Example== | |||
{{Example}} | |||
==See Also== | |||
{{Engine functions}} |
Revision as of 17:36, 8 September 2019
This function is used to assign the next available model ID to a certain element type. Currently only "ped" is supported.
Syntax
bool engineRequestModel ( str elementType )
Required Arguments
- elementType: this must be "ped".
Returns
Returns an integer of the model ID that was available to be assigned to the element type, false if no free model ID available or invalid element type.
Example
Script Example Missing Function EngineRequestModel needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- TODO
See Also
- engineAddImage
- engineApplyShaderToWorldTexture
- engineFreeModel
- engineGetModelFlags
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
- engineGetModelPhysicalPropertiesGroup
- engineGetModelTextureNames
- engineGetModelTextures
- engineGetModelTXDID
- engineGetModelVisibleTime
- engineGetObjectGroupPhysicalProperty
- engineGetSurfaceProperties
- engineGetVisibleTextureNames
- engineImageGetFilesCount
- engineImageGetFiles
- engineImageGetFile
- engineImageLinkDFF
- engineImageLinkTXD
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIMG
- engineLoadIFP
- engineLoadTXD
- engineRemoveImage
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRequestModel
- engineResetModelFlags
- engineResetModelLODDistance
- engineResetSurfaceProperties
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreDFFImage
- engineRestoreModel
- engineRestoreModelPhysicalPropertiesGroup
- engineRestoreObjectGroupPhysicalProperties
- engineRestoreTXDImage
- engineRestreamWorld
- engineSetAsynchronousLoading
- engineSetModelFlag
- engineSetModelFlags
- engineSetModelLODDistance
- engineSetModelPhysicalPropertiesGroup
- engineSetModelVisibleTime
- engineSetObjectGroupPhysicalProperty
- engineSetSurfaceProperties
- engineStreamingFreeUpMemory
- engineStreamingGetUsedMemory