Quantcast

Jump to content

» «
Photo

Option "toggle aim" gta V to SA?

Best Answer guru_guru, 4 weeks ago

script_name("AimToggle")
local vk = require 'vkeys'
bEnable = true

function main ()
	if bEnable then
		while true do
			wait (0)
			if isPlayerPlaying(PLAYER_HANDLE) then
				if isKeyJustPressed(vk.VK_RBUTTON) then -- aim button
					local toggle = true
					while toggle do
						wait(0)
						if isKeyJustPressed(vk.VK_RBUTTON) then toggle = false end
						setGameKeyState(6, 255)
					end
				end
			end
		end
	end
end

*sorry about weird indentation

Go to the full post


9 replies to this topic
ghostandme
  • ghostandme

    Player Hater

  • Members
  • Joined: 19 Oct 2017
  • Vietnam

#1

Posted 4 weeks ago Edited by ghostandme, A week ago.

"Aim Toggle" is when I press right mouse button my weapon stays aimed, instead of having to hold down on it.

Does "cleo" "asi" or "lua" act like it?
Can someone help me? pls
 
edit:
 
can someone help me?

ALT and SHIFT keys act like the above

run and walk

just press

not hold


kkjj
  • kkjj

    The ORIGINAL GTA SAN ANDREAS PLAYER..

  • Members
  • Joined: 20 Jul 2016
  • None

#2

Posted 4 weeks ago

Hope this mod shall help you..
http://www.gtainside...im-lock-on-mod/

guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#3

Posted 4 weeks ago   Best Answer

script_name("AimToggle")
local vk = require 'vkeys'
bEnable = true

function main ()
	if bEnable then
		while true do
			wait (0)
			if isPlayerPlaying(PLAYER_HANDLE) then
				if isKeyJustPressed(vk.VK_RBUTTON) then -- aim button
					local toggle = true
					while toggle do
						wait(0)
						if isKeyJustPressed(vk.VK_RBUTTON) then toggle = false end
						setGameKeyState(6, 255)
					end
				end
			end
		end
	end
end

*sorry about weird indentation

  • ghostandme likes this

ghostandme
  • ghostandme

    Player Hater

  • Members
  • Joined: 19 Oct 2017
  • Vietnam

#4

Posted 4 weeks ago

Hope this mod shall help you..
http://www.gtainside...im-lock-on-mod/

Thank you for the reply, but this mod does not work as I think

 

script_name("AimToggle")
local vk = require 'vkeys'
bEnable = true

function main ()
	if bEnable then
		while true do
			wait (0)
			if isPlayerPlaying(PLAYER_HANDLE) then
				if isKeyJustPressed(vk.VK_RBUTTON) then -- aim button
					local toggle = true
					while toggle do
						wait(0)
						if isKeyJustPressed(vk.VK_RBUTTON) then toggle = false end
						setGameKeyState(6, 255)
					end
				end
			end
		end
	end
end

*sorry about weird indentation

 

It works very well
thanks a lot: D

ghostandme
  • ghostandme

    Player Hater

  • Members
  • Joined: 19 Oct 2017
  • Vietnam

#5

Posted 4 weeks ago

script_name("AimToggle")
local vk = require 'vkeys'
bEnable = true

function main ()
	if bEnable then
		while true do
			wait (0)
			if isPlayerPlaying(PLAYER_HANDLE) then
				if isKeyJustPressed(vk.VK_RBUTTON) then -- aim button
					local toggle = true
					while toggle do
						wait(0)
						if isKeyJustPressed(vk.VK_RBUTTON) then toggle = false end
						setGameKeyState(6, 255)
					end
				end
			end
		end
	end
end

*sorry about weird indentation

 

It works even when I'm sitting in the car
Is there a command to turn that off?

guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#6

Posted 4 weeks ago Edited by guru_guru, 4 weeks ago.

replace this line 

if isPlayerPlaying(PLAYER_HANDLE) then

with 

if isPlayerPlaying(PLAYER_HANDLE) and isCharOnFoot(PLAYER_PED) then

That should do it.

  • ghostandme likes this

ghostandme
  • ghostandme

    Player Hater

  • Members
  • Joined: 19 Oct 2017
  • Vietnam

#7

Posted 4 weeks ago Edited by ghostandme, 4 weeks ago.

replace this line 

if isPlayerPlaying(PLAYER_HANDLE) then

with 

if isPlayerPlaying(PLAYER_HANDLE) and isCharOnFoot(PLAYER_PED) then

That should do it.

Sorry for bothering you, can you help me with the ALT and SHIFT keys act like the above? run and walk

just press not hold

I will be grateful: D


guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#8

Posted 4 weeks ago

Sure,but I'll be back home by Tuesday so you'll have to wait a bit.
  • ghostandme likes this

ghostandme
  • ghostandme

    Player Hater

  • Members
  • Joined: 19 Oct 2017
  • Vietnam

#9

Posted 4 weeks ago

Sure,but I'll be back home by Tuesday so you'll have to wait a bit.

I can wait, many thanks :)


ghostandme
  • ghostandme

    Player Hater

  • Members
  • Joined: 19 Oct 2017
  • Vietnam

#10

Posted A week ago

up





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users