itHyperoX Posted July 16, 2017 Posted July 16, 2017 Hello guys,whats the problem? There is no debug error. local randomAnim = { "bd_clap", "bd_clap1", "dance_loop", "dan_down_a", "dan_left_a", "dan_loop_a", "dan_right_a", "dan_up_a", "dnce_m_a", "dnce_m_b", "dnce_m_c", "dnce_m_d", "dnce_m_e", } local ped = createPed(47,2083.7927246094, 1449.6617431641, 10.8203125) setElementData(ped,"ped:Id",1) setPedAnimation(ped,"DANCING",randomAnim[math.random(#randomAnim)]) setElementFrozen(ped,true)
kikos500 Posted July 16, 2017 Posted July 16, 2017 Actually what is the problem? is the animation not working?
itHyperoX Posted July 16, 2017 Author Posted July 16, 2017 Srry for double reply. On client side working perfect, but i want this to server side.
keymetaphore Posted July 17, 2017 Posted July 17, 2017 Might not work, but did you try freezing the ped before setting the animation?
itHyperoX Posted July 17, 2017 Author Posted July 17, 2017 4 hours ago, Gourmet. said: Might not work, but did you try freezing the ped before setting the animation? Yes ofc
itHyperoX Posted July 17, 2017 Author Posted July 17, 2017 21 hours ago, TheMOG said: Hello guys,whats the problem? There is no debug error.
f8upd8 Posted July 19, 2017 Posted July 19, 2017 (edited) I had that problem to. There is my way to fix this issue: kurisu = createPed (39, 359.71392822266, 173.66009521484, 1010.3893432617, -90) addEventHandler("onResourceStart", getRootElement(), function () setTimer(function () kurisuDance = setPedAnimation(kurisu, "dancing", "dnce_m_e", -1, true, false, false, false) end, 100, 1) end) Yes, yes. Let server to rest a bit after spawning ped. Edited July 19, 2017 by f8upd8
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now