Jump to content

There are 3 bugs


thisdp

Recommended Posts

  • Scripting Moderators

I found 3 bugs in mtasa client side.

The first one:

When I used the function "getKeyState", I found a problem.

I press either "left shift" or "right shift" and both getKeyState("lshift") and getKeyState("rshift") usually return true.

code:

addEventHandler("onClientRender",root,function()

local lss = getKeyState("lshift")

local rss = getKeyState("rshift")

outputChatBox(""..tostring(lss).." "..tostring(rss).."")

end)

The second one:

local x,y,z = getElementPosition(localPlayer)

createProjectile(getLocalPlayer(),19,x,y,z,200,nil,0,0,0,0,0,1,411)

createProjectile use a vehicle model will cause crash.

The third one:

Do this:

Press "num_dec" (getKeyState("num_dec") returns true)

Hold "num_dec" and press "lshift" or "rshift" (getKeyState("num_dec") returns true)

Release the "shift" you pressed,then release "num_dec".

And now getKeyState("num_dec") still return true,although you release "num_dec".

Link to comment
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...