[API] mVehicle - [ Carkeys, Lockpick, Hotwire, and many functions] [UPDATE 03/06/2024]

mVehicles NEW MONO_CARKEYS

You can simply use this code to manage the vehicle keys on your server, or for more things,
READ IS NOT LAVA

Features

  • Fully compatible with ESX , QBOX, standalone (requires database), OX Everything works, but the vehicles do not spawn when the server loads, pending.

  • Vehicle are persistent.

  • Ability to add metadata to vehicles.

  • Records total kilometers driven by vehicles.

  • Key system via item or database.

  • Engine ignition by Key item/db

  • Menu for sharing keys (Default in ox Radial menu).

  • FakePlate only works with vehicles spawned by the Vehicles.CreateVehicle() and ox_inventory item

  • Hotwire & Lockpick items

  • Commands

  • /givecar [source]

  • /setcarowner [source]

  • /saveAllcars true/false: If true, deletes all vehicles; if false, only saves vehicles.

  • /spawnAllcars: Forces spawning of vehicles outside of garages.

Image

GiveCar

CarKeysMenu

ManageVehicleKeys

Other Features

  • Target for managing the trailer tr2.

Dependencies

Recommended latest
FiveM GameBuild

Shared file

shared_scripts { '@mVehicle/import.lua' }

Install

  1. update SQL
  2. Server.cfg
  3. set mVehicle:Persistent true/false (Default false)
  4. start the code after the dependencies of ox and your framework

DOWLOAD

mGarage

7 Likes

Very good script :slight_smile: . I have a question, could you add grade option if vehicle have job? For example:
job = ‘police’
grade = ‘3’

It’s already fixed, any questions about the garage pls here :)))

2 Likes

error

You are doing something wrong.

fx

Is it possible to use your own script for the keys?

Yes you can use it only for the keys.

NEW UPDATE 15/05/2024

  • Now QBOX Support

GitHub - Mono-94/mVehicle: New mono_carkeys

hey i think the scripts are nicee but i am having an issue with this

[ script:mVehicle] SCRIPT ERROR: @mVehicle/server/main.lua:557: attempt to call a nil value (global ‘Identifier’)
[ script:mVehicle] > ref (@mVehicle/server/main.lua:557)
[ script:mVehicle] > [global chunk] (@mGarage/server/main.lua:54)
[ script:mVehicle] > handler (@ox_lib/imports/callback/server.lua:96)

This update is not the definitive of everything that will bring the new version, we will simply release content.

New

In progress

  • Sound for engines by ITEM (mVehicle)
  • New keys and personal vehicles menu (mGarage)
  • New Documentation (mGarage & mVehicle & mVehicleshop )

FIX

  • when spawning a vehicle sometimes it came out with a different license plate, now it will run a loop until the correct value is applied.

This error is fixed :raised_back_of_hand:

nice, unfortunately i decided to go back to QBCore since a lot of my paid scripts fail to work with qbx at the moment with no updated exports for qbx