TGIANN Hotwire & Vehicle Key (Realistic)

:arrow_forward: Showcase Video :arrow_forward:
:video_game: Test Server :video_game:
:sos: Discord(Support) :sos:

TGIANN Hotwire and Vehicle Key System

Introducing our new Hotwire and Vehicle Key System for FiveM! This system adds realistic vehicle locking, unlocking, and hotwiring mechanics to enhance your gameplay experience.

Vehicle Lock/Unlock:

  • You can lock and unlock the vehicle while sitting in the driver’s seat or if you have the key in your inventory.
  • While outside the vehicle, you need the key in your inventory to lock or unlock the vehicle.
  • If the vehicle’s doors are physically open or missing, the vehicle cannot be locked.
  • During the locking and unlocking process, the vehicle’s lights will flash, and it will emit a sound.

Ignition System:

  • Keys are items in the inventory. Each vehicle has its own unique key.
  • To start the vehicle, press the R key to insert the key into the ignition.
  • Once the key is in the ignition, press the M key to turn the engine on.
  • Any player can drive a vehicle with the key in the ignition and can remove the key from the ignition.
  • The system automatically sends an emote (/me) when inserting or removing the key and when turning the engine on or off.

Hotwire System:

  • If you don’t have the key, you need to hotwire the vehicle to start it.
  • Every time you turn the engine on or off in a hotwired vehicle, you must go through the hotwire process.
  • During the hotwire process, there is a chance that the police will be notified, and the vehicle alarm will sound.

Unlocking External Doors:

  • Locked vehicle doors can be unlocked using a lockpick item.
  • During the lockpicking process, there is a chance that the police will be notified, and the vehicle alarm will sound.

NPC Vehicle Locks:

  • Parked vehicles may spawn locked based on a probability factor.
  • Moving vehicles will have their keys in the ignition. If you steal the vehicle, you can remove the key from the ignition by pressing the R key.

Recovering Lost Keys:

  • Lost vehicle keys can be recovered from an NPC in front of the police station for a fee.
  • The player can deactivate old keys when receiving a new key

Note:

  • If a vehicle is spawned using an admin command, it will automatically have the key in the ignition.

Requirements

  • ESX, QB or QBOX
  • Any metadata system inventory (Example: qb-inventory, ox_inventory etc.)

Config File

TGIANN | Hotwire & Vehicle Key 25€

TGIANN | Hotwire & Vehicle Key 25€

Code is accessible No ( Editable Files )
Subscription-based No
Lines (approximately) 850+
Requirements Check Requirements
Support Yes
2 Likes

If I steal a players vehicle key, can I park the car in a garage? And take it out again, or if its able to be parked persistent would be crazy.

if you edit the garage script you can do this, but in the default system of qb and esx the vehicle must be yours

Oki, ty for the fast reply. Ill go ask JG if they will support that :muscle:t3:

The export list will help you
Exports | TGIANN

Look into kq-hideout garage

Update

  • Removed OnceSetKeyInIgnition exports
  • Added CheckKeyInIgnitionWhenSpawn exports
    • If the vehicle’s key is in the ignition when the vehicle is stored in the garage, and you trigger this export when retrieving the vehicle, it will put the key back in the ignition

Update

  • Added SetNonRemoveableIgnition exports
    • You can use this export in situations where you don’t want the vehicle’s key to be removed. For example, if you have a farming job and you’re spawning a vehicle, you can use this export to insert the key into the ignition, preventing the player from removing it!

Great!

1 Like

Update

  • The config.enableStealingKeysNPC setting has been added.
    • When this setting is true, if you steal a vehicle driven by an NPC, the key will be in the ignition. If false, you will need to hotwire the vehicle.
  • Several important bugs have been fixed.