[Release] vEngine v1.2 | Simple engine toggle on button press (F6)


#1

vEngine v1.2

Very simple engine on/off toggle script. Requested by @JaxsenL because he had trouble using other engine toggle scripts.

To toggle the engine press F6 (optionally you can enable a /engine command in the config)

vEngine v1.1.zip (761 Bytes)
vEngine (v1.2) (Code is now on GitHub)

Changelog

v1.2 changes:

V1.1 Changed engine toggle button to F6 to fix overlapping buttons.
V1.0 Initial release.

Support discord


Engine Toggle Script
|||-Removed-|||
#3

I’m confused whats the commands for this ingame?


#4

As mentioned in the beginning, you press F6. to toggle the engine.
It is not command based.


#5

This is not working for me when i press f6 any ideas?


#6

You either have another mod/resource that uses or disables the F6 key, or you need to restart your server/client. Sometimes it randomly stops working even after reloading the resource. A full server and client restart is required in that case. I can’t figure out why this happens so I can’t fix it atm.


#7

Hmmmmm okay, at the moment i dont know of any that use f6, restarted multiple times but ill look into it!


#8

I would probably just be able to change the button for the control couldn’t I?


#9

Yeah of course, replace 167 with anything you like :slight_smile:


#10

this may be dumb, but do you have the number layout for each key?


#11

#12

Why dosent this work on cop cars, civ cars only?


#13

If you’re using lux_vehcontrol it doesn’t work because that resource disables the f6 key for emergency vehicles.


#14

Man, after the last update the engine will not stay off. It cranks right back up. Been working perfectly for a few months.


#15

Last update was about 3 months ago, haven’t had that issue myself nor has it been reported since. Are you sure it’s this script that’s not working?


#16

All i know is fivem updated on my end a couple of days ago and thats when it started. I have not added any new scripts. It tries to shut the engine off but fires right back up. May just be a coincidence on the update, im not sure.


#17

The script works but having the same problem where it cranks back up right after it turns off.


#18

It’s strange, sometimes I’m having this issue as well but most of the time I don’t… Not sure what’s causing it… (besides not being in a complete stop before shutting down the engine. If the car is moving while turning the engine off it’ll just start back up)


#19

how can i change the toggle to f5 or f7?

Do you mind helping me out?


#20

would it be 166 or 168


#21

ok i got it to work but is there anyway of getting this to work on police cars with lux?