Hey. I decided to release this because I don’t really use it anymore.
I used this when tuning cars in terms of their speed/acceleration.
It can most likely be improved as the way it’s written is far from perfect.
I added the config a while ago as it was requested by a friend of mine.
To toggle the event, type vehdebug in console/chat.
The command can be removed through client/main.lua, line 13-15.
You can also toggle this in a client with TriggerEvent("r1_vehdebug:toggle")
This script is inspired by Basic In-Game Debug Tool (LUA).
Config
Config = {}
-- FiveM controls
-- https://docs.fivem.net/docs/game-references/controls/
Config.Speed = "MPH" --MPH or KMH
Config.Notif = "CONSOLE" --CONSOLE or MYTHIC
--Fixes/repairs vehicle
Config.FixVehicle = 26 --Currently "C"
Config.FixVehicleLabel = "C" --Only for visuals. Replace with "nil" if you dont want it to show
--Reset the numbers
Config.Reset = 20 --Currently "Z"
Config.ResetLabel = "Z" --Only for visuals. Replace with "nil" if you dont want it to show
--Configure teleport key.
Config.UseTeleport = true --Or false to disable
Config.TeleportToCoords = vector3(-1958.9, 2841.6, 32.4) --Teleport location
Config.TeleportToCoordsHeading = 60.05 --Which way you are looking after being teleported
Config.TeleportToCoordsKey = 306 --Currently "N"
Config.TeleportToCoordsLabel = "N" -- Only for visuals. Replace with "nil" if you dont want it to show
--Delete vehicle
Config.UseDeleteVehicle = true --Or false to disable
Config.DeleteVehicleKey = 301--Currently "N"
Config.DeleteVehicleKeyLabel = "M" -- Only for visuals. Replace with "nil" if you dont want it to show
Update 2021-10-26
Teleport
Ability to configure a teleport location.Delete Vehicle
Ability to delete vehicle & configure.