[ESX] [RELEASE] Hijack Vehicle

esx_hijack_vehicle

What is this?

  • This is the script for hijack the other vehicle with animation

ATTENTION

This script uses a progress bar. Download it here

Example progressBar

exports['progressBars']:startUI(Time_MS, "Text Display")

Example:
exports['progressBars']:startUI(30000, "Reparing")
This will display and progress over 30 seconds / 30000ms and show Repaiing as the text

Download & Installation

Using Git

cd resources
git clone https://github.com/TheWestCityRP/esx_hijack_vehicle

Manually

or

Installation

  • Add this to your server.cfg :
start esx_hijack_vehicle

Video :point_down:

Feel free to give feedback.

4 Likes

Cool. Video would be great.

I’m making the video :wink:

Waiting for video

This is the video https://streamable.com/x6i13h @yagizwashere @Alveix

Please add [ESX] to the title

updated title @meme_channel. Thanks

1 Like

is ur code write on essential mode?
i am running with es_extended1.2.0 without essential mode
it error on ESX framework read

TriggerEvent(‘esx:getShsmackaredObjsmackect’, function(obj) ESX = obj end)

i think it should be instead of

TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)

?

@NightcoreIsla you have to change the string:

TriggerEvent(‘esx:getShsmackaredObjsmackect’, function(obj) ESX = obj end)

in the string:

TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)

Sorry if I haven’t communicated it. I always change calls to avoid cheaters

oh~ got it!
maybe u wanna try that?

This script didn’t do anything for me I had the all npc cars locked with another script and tried to finish it off with stealing the cars with this script I had a blowtorch and everything but wasn’t able to use the blowtorch to break into the car… :frowning: I also had no errors that i could think of

You can’t use two scripts to lock vehicles. I had the same problem when i used nocarjack + esx_ownedcarthief. You have to use only one script to lock NPC’s cars AND to steal cars. This is what i’ve made, the only problem is scenario cars (when a NPC park his car, it’s always unlocked)

Find esx_lockpick who lock NPC Cars and have a lockpick item

So your saying use that script over this script? Or does this script at least lock most npc cars a few unlocked cars here and there is fine as long as this script works and dosnt break after a couple test runs with it cuz I cant find anything like this that has everything worked into it like hot wiring and such

The script I created should also work for NPCs. If it doesn’t work, we will privately report that I will immediately make a fix. Thanks

Even if there are no vehicles around and I use blowtorch, it still disappears from my inventory.
Fix please…

I will arrange it as soon as possible, thanks for reporting it :wink: