Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. Just download the example given there, and understand the code there.
  2. I think you'll have to edit the dxDrawCircle function, but with the shader, you could do it instantly.
  3. You can use that function to draw it like that.
  4. How do you know if it doesn't use that given function or shader?
  5. We don't offer help on stolen scripts.
  6. Try to do the steps in this post.
  7. Join MTA's main Discord, you can get help there pretty much all day.
  8. You should read the Reference Manual first, then go to the Wiki, and read that.
  9. Then you have to change triggerClientEvent(source,"doki2",source) to triggerClientEvent(root, "doki2", source) in every line.
  10. NeXuS™

    FPS Drops

    @KroplaBezKitu Please download and run MTADiag and follow the instructions. Press 'y' when asked to allow making changes, and 'n' when otherwise asked to. Post any Pastebin URL MTADiag gives you in this topic.
  11. The player you are trying to trigger to leaves microseconds after you trigger it to him. What does the triggered script do?
  12. That's not going to work. It only registers it once as he presses it. function movePlayer(kButton, kState) if kState then moveTimer = setTimer(function() if getKeyState ("w") == true then x, y, z = getElementPosition ( localPlayer ) setElementPosition ( localPlayer, x, y, z+1, false ) elseif getKeyState ("s") == true then x, y, z = getElementPosition ( localPlayer ) setElementPosition ( localPlayer, x, y, z-1, false ) end end, 500, 0) elseif (kButton == "w" or kButton == "s") and isTimer(moveTimer) then killTimer(moveTimer) end end function addTheHandlers() setElementFrozen( localPlayer, true ) addEventHandler("onClientKey", root, movePlayer) --Want this to be constantly checked... end Try this one.
  13. Give me a second. addEventHandler('onClientPreRender',root,function() local width = dxGetTextWidth(messagesList[currentMessage]) dxRect(1068-8-width/2,250,width+16,21,tocolor(0,0,0,192),false) dxText(messagesList[currentMessage],1068-width/2,250,width,21,tocolor(0,255,255,255),1,'default-bold','center','center',false,false,false) end) This'll be centered at 1068-8.
  14. In your place, I'd calculate the center without any text, and then just minus the textwidth/2-some pixels.
  15. What happens if you try to output the string?
  16. You could create a table, assigning IDs to existing object IDs, but in the engine, no.
  17. I dont think. You'll have to use objects for that.
  18. I mean, you could use dxDrawMaterialLine3D, but you'd have to detect the movement of the player, so he couldn't go through it.
  19. Try to manual-debug the code I sent you. I think it should work. After reviewing the script I see how it works. setElementData(pColshape, "zombieProof", true) @TorNix~|nR
×
×
  • Create New...