requestAnimSet
Load a movement clipset (walk style, posture) and wait until it's ready, before SetPedMovementClipset.
Load a movement clipset (walk style, posture) and wait until it's ready, before SetPedMovementClipset.
lib.requestAnimSet(animSet, timeout?) loads a movement clipset (walk style, posture) and blocks
until it's ready — call it before SetPedMovementClipset. Returns the clipset name.
local clipset = 'move_m@drunk@verydrunk'
lib.requestAnimSet(clipset)
SetPedMovementClipset(PlayerPedId(), clipset, 1.0)
RemoveAnimSet(clipset)
-- back to the normal walk
ResetPedMovementClipset(PlayerPedId(), 0.0)animSetstringrequiredClipset name, e.g. move_m@drunk@verydrunk.
timeoutnumberoptionalMax wait in ms. Default 30000.
Returns the loaded clipset name. Throws after the timeout if it never loads.
An anim set is not an anim dict: a clipset changes how a ped moves (walk, posture), while
requestAnimDict loads one-shot animations (smoking, dancing) — different natives, don't mix them.
Release the clipset with RemoveAnimSet(clipset) when the ped goes back to normal. And
SetPedMovementClipset doesn't undo itself — call ResetPedMovementClipset(ped, blendOut) to restore
the default walk.