Possible to change key for searchlight?
Is it possible to change the searchlight button to something other than e? I want to change it to f because it conflicts with another plugin I use.

Change your plugin BUTTON.USE to any of these:

BUTTON.FORWARD - W
BUTTON.BACKWARD - S
BUTTON.LEFT - A
BUTTON.RIGHT - D
BUTTON.JUMP - SPACE
BUTTON.DUCK - CONTROL
BUTTON.SPRINT - SHIFT
BUTTON.USE - E
BUTTON.FIRE_PRIMARY - LEFT MOUSE BUTTON
BUTTON.FIRE_SECONDARY - RIGHT MOUSE BUTTON
BUTTON.RELOAD - R
BUTTON.FIRE_THIRD - MIDDLE MOUSE BUTTON​

I dont think rust supports any more of these keys from server side

Some keys also issue commands which can be detected, such as for changing seats and for toggling lights/nightvision (inventory.lighttoggle). I suggest using the one for toggling lights as it seems most fitting. These can be detected with the OnServerCommand hook.

Could you expand just slightly on that @WhiteThunder I was just looking into this tonight and decided I wanted to try to change the toggle to the same one that the native light toggle is set to.

I somewhat understand what you are saying but what would an OnServerCommand hook look like? I am branching out from configuration into trying to understand more of the ins and outs. Thank you in advance!

atAamoUb7QOFwuC.jpg Jbird

Could you expand just slightly on that @WhiteThunder I was just looking into this tonight and decided I wanted to try to change the toggle to the same one that the native light toggle is set to.

I somewhat understand what you are saying but what would an OnServerCommand hook look like? I am branching out from configuration into trying to understand more of the ins and outs. Thank you in advance!

Here is some code for the Drone Lights plugin that shows how to use OnServerCommand to detect the flashlight key being pressed.
https://github.com/WheteThunger/DroneLights/blob/master/DroneLights.cs#L95-L112

NKXTQs24ExGTuL8.jpg WhiteThunder

Here is some code for the Drone Lights plugin that shows how to use OnServerCommand to detect the flashlight key being pressed.
https://github.com/WheteThunger/DroneLights/blob/master/DroneLights.cs#L95-L112

Really appreciate you taking the time to share some of your work to help me figure this stuff out!

Will look into it and see what I can figure out!

Many thanks friend.