ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineLoadIFP

Function

engineLoadIFP

ClientGame engineIdentical to MTA:SA

Loads an IFP animation library (ANPK from Vice City, ANP2/ANP3 from San Andreas) from a file or data under your own block name (preferably "resource.block"). Play animations with setPedAnimation(ped, block, animation) or substitute them with engineReplaceAnimation. Stopping the resource frees the block.

Syntax

element engineLoadIFP(string ifpFileOrData, string customBlockName)

Arguments

ifpFileOrDatastring
An .ifp file or its data.
customBlockNamestring
Your own block name.

Returns

An IFP element or false.

Example

local ifp = engineLoadIFP("anim/taniec.ifp", "taniec.blok")
if ifp then setPedAnimation(localPlayer, "taniec.blok", "dance1") end

See also