ELRICOFATAL Posted February 1, 2018 Share Posted February 1, 2018 (edited) Hello. I would need information on how to add a second function to a key. As for MP, the police turn on the siren I'd like to know what I need to do to add this option to the modification (not necessarily .ogg playback) i mean when you press in MP as police button "J" then lights was worked normal but in the same time is turned sound .ogg (siren) specific one sound and i would know how to do that DO NOT USE IN MP ! ! ! DO USE SP ONLY ! Edited February 1, 2018 by ELRICOFATAL Link to comment Share on other sites More sharing options...
Carrera18 Posted February 1, 2018 Share Posted February 1, 2018 MP does not support changing the keys. the game keys can be changed instead. Link to comment Share on other sites More sharing options...
Guest Posted February 1, 2018 Share Posted February 1, 2018 Hi @ELRICOFATAL You can't add new key,you can only change the control keys like w,a,s,d.This key you are talking about (j) is special for game moderators.Also i think devs added this. Link to comment Share on other sites More sharing options...
[MCG] Kien Giang Posted February 1, 2018 Share Posted February 1, 2018 Hello ETS2MP is not supported that. You can only change the game key Link to comment Share on other sites More sharing options...
ELRICOFATAL Posted February 1, 2018 Author Share Posted February 1, 2018 I just want to know how to add a second option to the key ... Like in exp Police turned on/off siren as press button from long lights "J" i want know how to do that (i needed it in SP to mod but not to play .ogg/ just to turn on diffrend lights when you press J ) Link to comment Share on other sites More sharing options...
Interstate Nomad Posted February 2, 2018 Share Posted February 2, 2018 Maybe that would help? https://www.autohotkey.com/ Link to comment Share on other sites More sharing options...
ELRICOFATAL Posted February 2, 2018 Author Share Posted February 2, 2018 13 hours ago, Joao Rodrigues said: Maybe that would help? https://www.autohotkey.com/ not rely i just want know how they made that turn one .ogg from file data2.mp when press J Link to comment Share on other sites More sharing options...
HumaneWolf Posted February 4, 2018 Share Posted February 4, 2018 You'll need to make a program that listens to the keypress and then does the appropriate action. While hooking into the game is possible, that is a lot of work, and I would instead recommend to just have a separate program running in the background that listens for the event. Would be pretty much the same experience, but with a lot less work. HumaneWolf - Website - Twitter - GitHub Ex-Developer Link to comment Share on other sites More sharing options...
ELRICOFATAL Posted February 6, 2018 Author Share Posted February 6, 2018 On 2/4/2018 at 12:58 PM, HumaneWolf said: You'll need to make a program that listens to the keypress and then does the appropriate action. While hooking into the game is possible, that is a lot of work, and I would instead recommend to just have a separate program running in the background that listens for the event. Would be pretty much the same experience, but with a lot less work. so you have ruining on server BC program / script with one hook hey and do action like play .ogg ? Link to comment Share on other sites More sharing options...
HumaneWolf Posted February 6, 2018 Share Posted February 6, 2018 10 hours ago, ELRICOFATAL said: so you have ruining on server BC program / script with one hook hey and do action like play .ogg ? No, not our server. Our client listen for keypresses while you are playing and you are in game, that's how the siren on J works, opening the chat on Y, opening tab, etc. It's just doing different actions based on which key. HumaneWolf - Website - Twitter - GitHub Ex-Developer Link to comment Share on other sites More sharing options...
ELRICOFATAL Posted February 7, 2018 Author Share Posted February 7, 2018 right now all is clear to understand how it work ... THX for answer me ! Link to comment Share on other sites More sharing options...
Recommended Posts