/tofmechanicAI

Free FiveM script about mechanicAI fully configurable - Legacy - ox_lib

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

tofmechanicAI

Because repairing your car in 30s with a repairkit, a piece of tape and a staple is not very roleplaying, I made this Mechanic AI script.

Dependencies

Install

  • copy tofmechanicAI in your 'resources' folder
  • start it in your server.cfg
  • ox_lib must start before tofmechanicAI

Configuration

Optionsmecano.command = 'mecano'                      -- configure the commande name /...
Optionsmecano.model = 'S_M_Y_DockWork_01'             -- configure the model ped for mecano
Optionsmecano.jobname = 'mechanic'                    -- configure the mechanic job name
Optionsmecano.max = 0                                 -- configure the maximum of mechanic worker to activate the command
Optionsmecano.timerwait = 30000                       -- configure how many times in ms the player wait the mecano 
Optionsmecano.timerrepair = 60000                     -- configure how many times during the repair 
Optionsmecano.cost = 1500                             -- configure the cost of the repair
Optionsmecano.body = true                             -- configure if mecano repair body (true | false)
Optionsmecano.addfuel = false                         -- configure if mecano add fuel (true | false)
Optionsmecano.fuellevel = 10.0                        -- configure add fuel level

Translations /locales/en.json