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
But you should also only allow open doors etc from the menu when owning the vehicle otherwise player can troll others a lot
1 Like
I am open to any suggestion… just wanted to get it out there before the weekend
I will probably build in a new config option for that then
How did you manage to get so much MS with the menu open?
Isn’t it NUI?
Nope, it is 100% native usage
I don’t like html css etc
1 Like
Ahh, I see, @Jordanpkl would love this then.
Nice design, clean.
2 Likes
What’s the difference between your free version?
This version is now outdated. Head on over to the new topic to find an updated post!
.
.
.
.
.
.
[image]
What exactly is the “ContextMenu” and what can you do with it?
ContextMenu is a script that allows you to create your own menus for any kind of purpose. It does nothing by itself.
You hold a button and your cursor appears on the screen. You can then click on any object and open specific menus for specific objects. This is kind of like your default rightclick menu in every other app…
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
1 Like
Small update which fixes two errors.
Kiminaze:
Update (v1.0.1):
Fixed a server side error with the sql queries.
Fixed a client side error related using the shuffle function from the menu.
New update fixing a few issues.
Kiminaze:
Update (v1.0.3):
Fixed an error regarding the delete option.
Fixed several errors regarding ESX.
Made it compatible with those non-8-symbol plates some ESX scripts use.
New update adding a few more features!
Kiminaze:
Update (v1.1):
Updated to ContextMenu v1.1 (update that as well or you will get errors!)
Added config options for keeping the engine on/off when exiting/entering a vehicle.
Added config option for turning the engine on/off when inside the vehicle with a button.
Added config option for locking vehicle with a button.
Added config option for max distance for the menu.
Fixed Radio option being enabled for any vehicle.
Fixed Headlight option being enabled for any vehicle.
Small update fixing a bug when using the button to lock / unlock your vehicle.
Kiminaze:
Update (v1.1.1):
Fixed lock button not using vehicle ownership.
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.
Kiminaze:
Update (v1.2):
Added kimi_callbacks script for callbacks. This is a necessity and needs to be installed properly!
Added config option for disabling vehicle air controls.
Added config option for disabling vehicle roll over.
Added the ability to flip a vehicle from outside (configurable force multiplier) (more players = more force).
Neonlights option is now only for vehicle owner or driver.
Opening/Closing of vehicle doors is now only for vehicle owner.
Other players can only open the door of their respective seat or if they are close enough.
Fixed vehicle engine not staying off when entering a vehicle after a server restart.
Fixed Lockstatus Unlocked from 0 to 1. This fixes compatibility with many other scripts (like trunk inventories).
Fixed some minor issues and added compatibility with my new VehicleKeyChain script.
Kiminaze:
Update (v1.3):
Added compatibility with VehicleKeyChain .
Added kimi_callbacks to the dependencies.
Fixed group not being set properly and the Delete Option missing from the menu.
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