I dont have a friend to test right not… but i think if you play a animation with the esx methods, just playing the anim at one, all the others players will see it.
edit to clarify: you only need send the “ BRPC:PlayAnim ” request to the client supposed to play the animation
Using “ GetPlayerPed(-1) you will get the ped of the current user, not all, to do that you have to send this event to all players who needed it from server script.
A good example is this part of esx script:
function startScenario(anim)
TaskStartScenarioInPlace(PlayerPedId(), anim, 0, false)
end
Here play the animation without try sync a serverside event and it is known this resource works properly and others can see the animation.