EngineUnloadIFP: Difference between revisions
Jump to navigation
Jump to search
m (→Example) |
(disabled info) |
||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
{{Disabled|Function disabled because it was unstable|4571}} | |||
__NOTOC__ | __NOTOC__ | ||
This function unloads an animation library loaded by [[engineLoadIFP]]. | This function unloads an animation library loaded by [[engineLoadIFP]]. |
Revision as of 17:27, 1 March 2014
Function has been disabled. | |
Reason/Note: Function disabled because it was unstable - Bugtracker Issue: #4571 |
This function unloads an animation library loaded by engineLoadIFP.
Syntax
bool engineLoadIFP ( element ifp )
Required Arguments
- ifp: The IFP element loaded by engineLoadIFP to unload.
Returns
Returns true if the IFP file has been unloaded succesfully, false otherwise.
Example
Click to collapse [-]
animation.lualocal localPlayer = getLocalPlayer() local ifp = nil function setanimation() ifp = engineLoadIFP("data/ani.ifp") if ifp then setPedAnimation(localPlayer, "ANIMATIONBLOCK", "animation1") end end addCommandHandler("animation", setanimation) function stopanimation() if ifp then engineUnloadIFP(ifp) setPedAnimation(localPlayer) end end addCommandHandler("stopanimation", stopanimation)
Click to collapse [-]
meta.xml<meta> <info author="lukry" version="1.0" type="script" /> <script src="animation.lua" type="client" /> <file src="data/ani.ifp" /> </meta>
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