Disable watch

Started by Luis_Labarca, Jul 01, 2016, 05:42 AM

Previous topic - Next topic

Luis_Labarca

Hello I wanted to ask if you can disable the sight which is like first-person weapons m4/m60/ruger
My server RP
IP: 51.222.28.159:8194

DizzasTeR

A small snippet can actually do that work.

KAKAN

Take the user's keybind and use return 0 to disable it.
oh no

Luis_Labarca

Quote from: KAKAN on Jul 01, 2016, 08:36 AMTake the user's keybind and use return 0 to disable it.
Ahh ok bro thanks
My server RP
IP: 51.222.28.159:8194

Luis_Labarca

My server RP
IP: 51.222.28.159:8194

KAKAN

http://wiki.vc-mp.org/wiki/OnPlayerGameKeysChange
This is what you're looking for. Unfortunately, not all keybinds are available though, I mean they're there, but not listed :p
oh no

Xmair

This can easily be done by using onPlayerActionChange.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Luis_Labarca

Quote from: KAKAN on Jul 01, 2016, 01:12 PMhttp://wiki.vc-mp.org/wiki/OnPlayerGameKeysChange
This is what you're looking for. Unfortunately, not all keybinds are available though, I mean they're there, but not listed :p

Thanks :D friend this me just

My server RP
IP: 51.222.28.159:8194

Luis_Labarca

Quote from: Xmair on Jul 01, 2016, 05:20 PMThis can easily be done by using onPlayerActionChange.
Thank ;) you also for your help bro

My server RP
IP: 51.222.28.159:8194