Jump to content

getKeyState


Controlled

Recommended Posts

Posted

No matter what I do, I can't get getKeyState to work at all.

I've been trying to work with Synced Fires community script and getKeyState makes the script not work. Returns false each time.

if getKeyState("mouse1") == true or getKeyState("mouse2") == true then 

Thats the line. And no matter what it returns false... Theres got to be a reason, right?

Posted
No matter what I do, I can't get getKeyState to work at all.

I've been trying to work with Synced Fires community script and getKeyState makes the script not work. Returns false each time.

if getKeyState("mouse1") == true or getKeyState("mouse2") == true then 

Thats the line. And no matter what it returns false... Theres got to be a reason, right?

it's when the player press the button it wont check every time only when he press .

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
Its checking this onClientRender. It checks the key and if its being pressed it continues.

Is that the right way to use it?

What are you trying to do here ?

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

test with onClientRender +

dxDrawText(tostring(getKeyState( --[[whatever you want]] )), 0, 0) -- draws at top left corner 

Previously known as MrTasty.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...