fivem scripting for some reason this does not work triggering from client.lua…
- User
fivem scripting for some reason this does not work triggering from client.lua
RegisterNetEvent('main-volleyball:client:animation') AddEventHandler('main-volleyball:client:animation', function(animationDirectory, animationName, speed) local playerPed = PlayerPedId() if (DoesEntityExist(playerPed) and not IsEntityDead(playerPed)) then loadAnimationDict(animationDirectory) TaskPlayAnim(playerPed, animationDirectory, animationName, speed, 4.0, 300, 51, 0, false, false, false) end end)
TriggerEvent('main-volleyball:client:animation', "amb@prop_human_movie_bulb@base", "base", 4.0)
- Assistant
It seems that the event 'main-volleyball:client:animation' is not being triggered properly. Make sure that the event name is correct and that you are triggering it from the correct location in your code. Also, check that the parameters being passed to the event are correct and valid. You may also want to add some error handling to see if any errors are being thrown. Finally, make sure that the function loadAnimationDict is defined and able to successfully load the animation dictionary.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.