97 lines
No EOL
3.4 KiB
Lua
97 lines
No EOL
3.4 KiB
Lua
FobConfig = {
|
|
EnabledButtons = {'REMOTE_START',}, -- set this to the defualt buttons you want to use --[['EXPLODE_VEHICLE','ROOF_TOGGLE', 'SELFPARK_VEHICLE', 'SUMMON_VEHICLE'-]]
|
|
ExtraButtons = { -- set this to the extra buttons you want to use
|
|
{
|
|
number = 1,
|
|
action_id = 'REMOTE_START',
|
|
text = 'Fernstart',
|
|
description = 'Damit startest oder stoppst du den Motor des Fahrzeugs',
|
|
icon = 'fas fa-car',
|
|
price = 25000,
|
|
canPurchase = false,
|
|
action = function(vehicle)
|
|
local engineStatus = GetIsVehicleEngineRunning(vehicle)
|
|
SetVehicleEngineOn(vehicle, not engineStatus, true, true)
|
|
end,
|
|
},
|
|
{
|
|
number = 2,
|
|
action_id = 'ROOF_TOGGLE',
|
|
text = 'Dach steuern',
|
|
description = 'Damit öffnest oder schließt du das Fahrzeugdach',
|
|
icon = 'fas fa-car',
|
|
price = 25000,
|
|
canPurchase = true,
|
|
action = function(vehicle)
|
|
local roofState = GetConvertibleRoofState(vehicle)
|
|
if roofState == 2 then return RaiseConvertibleRoof(vehicle, false) end
|
|
LowerConvertibleRoof(vehicle, false)
|
|
end,
|
|
},
|
|
{
|
|
number = 3,
|
|
action_id = 'SELFPARK_VEHICLE',
|
|
text = 'Fahrzeug parken',
|
|
description = 'Damit parkt dein Fahrzeug auf dem nächstgelegenen Stellplatz.',
|
|
icon = 'fas fa-car',
|
|
price = 25000,
|
|
canPurchase = false,
|
|
action = function(vehicle)
|
|
-- Please be aware this feature is something I added for fun, due to the nature of fivem itl never be perfect but by using this you accept bugs may occur.
|
|
DoVehicleSelfPark(vehicle)
|
|
end,
|
|
},
|
|
{
|
|
number = 4,
|
|
action_id = 'SUMMON_VEHICLE',
|
|
text = 'Fahrzeug rufen',
|
|
description = 'Dies ruft dein Fahrzeug zu deinem aktuellen Standort.',
|
|
icon = 'fas fa-car',
|
|
price = 25000,
|
|
canPurchase = true,
|
|
action = function(vehicle)
|
|
-- Please be aware this feature is something I added for fun, due to the nature of fivem itl never be perfect but by using this you accept bugs may occur.
|
|
SummonVehicle(vehicle)
|
|
end,
|
|
},
|
|
{
|
|
number = 5,
|
|
action_id = 'AUTO_PILOT',
|
|
text = 'Auto Pilot',
|
|
description = 'Das Fahrzeug fährt damit automatisch zum gesetzten Wegpunkt.',
|
|
icon = 'fas fa-car',
|
|
price = 25000,
|
|
canPurchase = true,
|
|
action = function()
|
|
-- Please be aware this feature is something I added for fun, due to the nature of fivem itl never be perfect but by using this you accept bugs may occur.
|
|
EnableAutoPilot()
|
|
end,
|
|
},
|
|
{
|
|
number = 6,
|
|
action_id = 'DANCE_MODE',
|
|
text = 'Tanzmodus',
|
|
description = 'Dadurch wird dein Fahrzeug tanzen.',
|
|
icon = 'fas fa-car',
|
|
price = 25000,
|
|
canPurchase = true,
|
|
action = function(vehicle)
|
|
-- Please be aware this feature is something I added for fun, due to the nature of fivem itl never be perfect but by using this you accept bugs may occur.
|
|
DanceMode(vehicle)
|
|
end,
|
|
},
|
|
{
|
|
number = 7,
|
|
action_id = 'PROXIMITY_TOGGLE',
|
|
text = 'Automatisches Schloss',
|
|
description = 'Damit kannst du die Verriegelung per Annäherung aktivieren oder deaktivieren.',
|
|
icon = 'fas fa-car',
|
|
price = 1000,
|
|
canPurchase = true,
|
|
action = function(vehicle)
|
|
-- Please be aware this feature is something I added for fun, due to the nature of fivem itl never be perfect but by using this you accept bugs may occur.
|
|
ExecuteCommand('proximitylocks')
|
|
end,
|
|
},
|
|
},
|
|
} |