RequestAnimSet vs RequestAnimDict

What is the difference between

RequestAnimSet

void REQUEST_ANIM_SET(char* animSet);

RequestAnimDict

void REQUEST_ANIM_DICT(char* animDict);

I see both and they both seem to work… one for scenario and one for anim ?

its for this… and also to understand how things work

  function loadAnimDict(Anim)
    while not HasAnimDictLoaded(Anim) do
      RequestAnimDict(Anim) -- RequestAnimSet
      Wait(100)
    end
  end

Request it then wait, don’t loop while it’s not loaded then request.

  function loadAnimDict(Anim)
    RequestAnimDict(Anim) -- But should i use this instead --> RequestAnimSet(Anim)
    while not HasAnimDictLoaded(Anim) do
      Wait(100)
    end
  end

The natives is unclear for me…
https://runtime.fivem.net/doc/natives/#_0x6EA47DAE7FAD0EED
https://runtime.fivem.net/doc/natives/#_0xD3BD40951412FEF6 No description

RequestAnimDict is used to request the dictionary of an animation, so you will then be able to use TaskPlayAnim.
RequestAnimSet is used to request a clipset of a ped movement so then you will be able to use SetPedMovementClipset.

2 Likes