Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/06/21 in all areas

  1. I am also using triggerClientEvent for the rotations. But not because of this issue, it is more for combining all AI instructions in to 1 packet and therefore reducing data. While rewriting your code, you might take that concept in consideration.
    1 point
  2. Are you sure that db returns valid database connection? Tip in custom events: Use client variable instead of passing player to server - see https://wiki.multitheftauto.com/wiki/Script_security
    1 point
  3. Try 0 as x and y rotation as for now you set the actual x and y positions
    1 point
  4. The thing is I tried a lot of stuff (hitting, shooting) to them. They keep rotating even while dead and laying on the ground. I increased the loop for ped spawning to 100 to make sure it won't break with more peds. And in the end they all keep rotating to me with no exclusion.
    1 point
  5. using interpolateBetween Small example: local abc = false local alpha = 0 local tick = 0 function d() if abc then alpha = interpolateBetween(0, 0, 0, 255, 0, 0, (tick-getTickCount())/2500, "Linear") else alpha = interpolateBetween(255, 0, 0, 0, 0, 0, (tick-getTickCount())/2500, "Linear") end dxDrawRectangle(screenW * 0.2000, screenH * 0.3000, screenW * 0.0600, screenH * 0.0600, tocolor(255, 0, 0, alpha), false) end addEventHandler("onClientRender", root, d) function anim() if not animState then animState = true abc = true else animState = false abc = false end end bindKey("f2", "down", anim)
    1 point
×
×
  • Create New...