Job Integration CarNet
General to mode of operation
Our script has a trigger that can be used to have the CarNet triggered by any other script. As soon as this happens, the tablet appears and automatically opens the CarNet. The trigger to trigger the script from us is: TriggerEvent('vpc-tab:BOSS', 'car')
Example: Integration into the F6 menu of esx_mechanicjob
First open the main.lua in the client folder of the esx_mechanicjob. Once in the main.lua, please search for OpenMobileMechanicActionsMenu(), using the key combination CTRL+F. If you do not find this, please search for mobile_mechanic_actions. Once you have found this, it should look something like this:
function OpenMobileMechanicActionsMenu()
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mobile_mechanic_actions', {
title = _U('mechanic'),
align = 'top-left',
elements = {
{label = _U('billing'), value = 'billing'},
{label = _U('hijack'), value = 'hijack_vehicle'},
{label = _U('repair'), value = 'fix_vehicle'},
{label = _U('clean'), value = 'clean_vehicle'},
{label = _U('imp_veh'), value = 'del_vehicle'},
{label = _U('flat_bed'), value = 'dep_vehicle'},
{label = _U('place_objects'), value = 'object_spawner'}
}}, function(data, menu)
if isBusy then return end
if data.current.value == 'billing' then
Please replace this code shown above with the following code:
function OpenMobileMechanicActionsMenu()
ESX.UI.Menu.CloseAll()
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'mobile_mechanic_actions', {
title = _U('mechanic'),
align = 'top-left',
elements = {
{label = _U('billing'), value = 'billing'},
{label = _U('hijack'), value = 'hijack_vehicle'},
{label = _U('repair'), value = 'fix_vehicle'},
{label = _U('clean'), value = 'clean_vehicle'},
{label = _U('imp_veh'), value = 'del_vehicle'},
{label = _U('flat_bed'), value = 'dep_vehicle'},
{label = _U('place_objects'), value = 'object_spawner'},
{label = 'Tablet', value = 'carnet'}
}}, function(data, menu)
if isBusy then return end
if data.current.value == 'carnet' then
TriggerEvent('vpc-tab:BOSS', 'car')
elseif data.current.value == 'billing' then