[Release] Advanced Vehicle Interaction

Hello everyone!
This time I bring to you my new vehicle interaction script!

What exactly is the “Advanced Vehicle Interaction” and what can you do with it?

This is a script that provides a new way to interact with any vehicle. You can hold a button and click on any vehicle to see the available options. An exact list can be found in the features below. Furthermore it allows you to sit on the passenger seat without switching over to the drivers seat and depending on if your next seat is free, you can shuffle over to it by holding “H”. This works not only from passenger to driver, but also from driver to passenger and rear left seat to rear right seat etc.

This script is standalone but can be reconfigured to work with ESX’s vehicle ownership and group permissions. The whole script in general is highly configurable and can even serve as kind of a small admin menu by allowing users with a high enough permission level to delete vehicles from the world.

An example of what can be done with this script can be found in this video:

Requirements

Features

  • All features are synced to all players.
  • All features can be used although another player is controlling / sitting in a vehicle. See video for details.
  • Highly configurable. Ability to remove basically any menu option and disable other features.
  • New custom menu! (free and made by me)
  • Control indicators separately (defaults to left/right arrow keys).
  • Shuffle from seat to seat (driver to passenger and back again and rear left to rear right and back again).
  • Auto shuffle from passenger to driver seat disabled.
  • Vehicles that are locked can neither be entered nor exited.
  • Config options for keeping the engine on/off when exiting/entering a vehicle.
  • Config option for turning the engine on/off when inside the vehicle with a button.
  • Config option to only allow vehicle owner to toggle the engine.
  • Config option for locking vehicle with a button.
  • Config option for disabling vehicle air controls.
  • Config option for disabling vehicle roll over.
  • Ability to flip a vehicle from outside (configurable force multiplier) (more players = more force).
  • Config option for max distance for the menu.
  • Hold Left Alt for showing the cursor
  • Menu options:
    • Lock and unlock (owned) vehicles.
    • Enter the closest seat of a vehicle to your cursor position (works with ALL standing positions
    • on eligible vehicles like the Granger or the Firetruck!). (can be cancelled by walking) (can run using Sprint button)
    • Open / close vehicle doors when vehicle is unlocked.
    • Open / close vehicle windows when vehicle is unlocked.
    • Toggle the engine on and off (from outside).
    • Toggle headlights on and off (from outside).
    • Toggle neon lights if the vehicle has them.
    • Toggle the radio (from outside).
    • Toggle the radio channel (from outside).
    • Toggle the radio loudness (from outside).
    • Play with hydraulics (from outside) if the vehicle has the suitable modifications.
    • Toggle the extras of vehicles.
    • Toggle the alarm of vehicles.
    • Delete, repair, flip vehicles (only if permissions are suitable).
  • Can be restarted any time.
  • Compatible with VehicleKeyChain.
  • Compatible with basically everything? Let me know if you find any issues!
  • Uses the Asset Escrow System (~200 lines encrypted of ~2000 lines total).

Currently Planned Features

  • Control boat anchor.
  • Seatbelt
  • Cruise control
  • Control sirens (of police vehicles etc.)
  • Ability to push a vehicle when it is broken.
  • Full Controller support for the menu.
  • If you have any suggestions on changes or find features missing, just let me know and I’ll see what is possible and can be done.

Performance

  • Client side: 0.03-0.04ms
  • Server side: 0.00ms

Where can I get this?

This script is currently purchasable for 10€ (without tax) at: https://kiminazes-script-gems.tebex.io/package/4443264

Code is accessible ~90% accessible
Subscription-based No
Lines (approximately) 2000
Requirements Check requirements above
Support Yes

Patchnotes

Can now be found on Github

Known Issues

  • No Controller support for the menu as of now (will come eventually).

Check out my other scripts as well!

  • CinematicCam - Lets you fly around the world with a lot of different camera functions.
  • DeathCam - Lets you rotate the camera when you are dead.
  • AdvancedParking - Lets you park any vehicle anywhere and prevents despawns.
  • VehicleTransport - Adds much more dynamic to the attaching and detaching vehicles from transport vehicles
  • MarkerManager - Easy-To-Use Marker Creation and Management.
4 Likes

Nice script will directly buy it :slight_smile:

But you should also only allow open doors etc from the menu when owning the vehicle otherwise player can troll others a lot :smiley:

1 Like

I am open to any suggestion… just wanted to get it out there before the weekend :smiley:
I will probably build in a new config option for that then :slight_smile:

How did you manage to get so much MS with the menu open?
Isn’t it NUI?

Nope, it is 100% native usage :slight_smile:
I don’t like html css etc :smiley:

1 Like

Ahh, I see, @Jordanpkl would love this then.

Nice design, clean.

2 Likes

What’s the difference between your free version?

The ContextMenu is the framework.

Like many scripts use NativeUI or RageUI or MenuAPI etc.

AVI just uses this framework for its menu. You can use the ContextMenu to create your own menus for free :slight_smile:

1 Like

Small update which fixes two errors.

this is great

1 Like

New update fixing a few issues.

New update adding a few more features!

Small update fixing a bug when using the button to lock / unlock your vehicle.

Anyway to change the button or keymaps as the current lock key is also the A button on Xbox controller and makes interrupts run. Thank you

In the config.lua Config.Controls.Lock

Big update adding a few features and tweaking some of the options.

kimi_callbacks is now mandatory for this script to function properly! The built in callbacks are now removed. This will net a more streamlined experience for most of my (upcoming) scripts.

Fixed some minor issues and added compatibility with my new VehicleKeyChain script.

Awsome script, but it take way too much ms. Think about when you have tons of players using this menu.

This script does a lot of things at the same time. Of course there is always room for improvements. And this is still WIP. I never just leave a project. They get updates all the time.
If you have any suggestions, let me know.

If you are referring to the menu open ms, that is totally normal. Have you seen NativeUILua? That thing spikes to ~0.80ms depending on the menu options inside.

And server side is 0.00ms, so I have no clue what you mean with “tons of players”. Client side ms only affects a single player at any given time. Not everyone else.
If server side would be extremely high, then I would understand.

Thank you for letting me know that, i had the wrong idea about how MS work.
I didn’t meant to sound like a very bad critic of your work.
Cheers !

1 Like