-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
Just download the example given there, and understand the code there.
-
I think you'll have to edit the dxDrawCircle function, but with the shader, you could do it instantly.
-
You can use that function to draw it like that.
-
How do you know if it doesn't use that given function or shader?
-
dxDrawCircle, or shader.
-
What do you mean by "stuck on"?
-
Try to do the steps in this post.
- 1 reply
-
- 1
-
-
You can use isChatBoxInputActive.
-
Then you have to change triggerClientEvent(source,"doki2",source) to triggerClientEvent(root, "doki2", source) in every line.
-
The player you are trying to trigger to leaves microseconds after you trigger it to him. What does the triggered script do?
-
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.
-
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.
-
In your place, I'd calculate the center without any text, and then just minus the textwidth/2-some pixels.
-
What happens if you try to output the string?
-
You could create a table, assigning IDs to existing object IDs, but in the engine, no.
-
I dont think. You'll have to use objects for that.
-
I mean, you could use dxDrawMaterialLine3D, but you'd have to detect the movement of the player, so he couldn't go through it.
-
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
