EngineUnloadIFP
From Multi Theft Auto: Wiki
Function has been disabled. | |
Reason/Note: Function disabled. It doesn't exist anymore, use destroyElement to unload IFP. |
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
- engineApplyShaderToWorldTexture
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
FROM VERSION 1.5.7 r19626 ONWARDS
FROM VERSION 1.5.7 r20147 ONWARDS
- engineGetModelTextureNames
- engineGetVisibleTextureNames
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIFP
- engineLoadTXD
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreModel
- engineSetAsynchronousLoading
- engineSetModelLODDistance
- engineSetSurfaceProperties
- engineGetSurfaceProperties
- engineResetSurfaceProperties