@@ -53,49 +53,49 @@ AddEventHandler('EngineToggle:Engine', function()
53
53
vehicles [StateIndex ][2 ] = not GetIsVehicleEngineRunning (veh )
54
54
if vehicles [StateIndex ][2 ] then
55
55
if Config .Notifications then
56
- TriggerEvent (' notifications' , " #00EE00" , " Dein Fahrzeug " , " Dein Fahrzeug wurde gestartet " )
56
+ TriggerEvent (' notifications' , " #00EE00" , _U ( ' notification_header ' ), _U ( ' n_engine_start ' ) )
57
57
elseif Config .OkokNotify then
58
- exports [' okokNotify' ]:Alert (" Fahrzeug " , " Der Motor wurde <span style='color:#47cf73'>gestartet</span>. " , 5000 , ' info' )
58
+ exports [' okokNotify' ]:Alert (_U ( ' notification_header ' ), _U ( ' okok_engine_start ' ) , 5000 , ' info' )
59
59
else
60
- TriggerEvent (' esx:showNotification' , ' Der Motor wurde ~g~gestartet ' )
60
+ TriggerEvent (' esx:showNotification' , _U ( ' engine_start ' ) )
61
61
end
62
62
else
63
63
if Config .Notifications then
64
- TriggerEvent (' notifications' , " #FF0000" , " Dein Fahrzeug " , " Dein Fahrzeug wurde gestoppt " )
64
+ TriggerEvent (' notifications' , " #FF0000" , _U ( ' notification_header ' ), _U ( ' n_engine_stop ' ) )
65
65
elseif Config .OkokNotify then
66
- exports [' okokNotify' ]:Alert (" Fahrzeug " , " Der Motor wurde <span style='color:#FF0000'>ausgeschalten</span>. " , 5000 , ' info' )
66
+ exports [' okokNotify' ]:Alert (_U ( ' notification_header ' ), _U ( ' okok_engine_stop ' ) , 5000 , ' info' )
67
67
else
68
- TriggerEvent (' esx:showNotification' , ' Der Motor wurde ~r~gestoppt ' )
68
+ TriggerEvent (' esx:showNotification' , _U ( ' engine_stop ' ) )
69
69
end
70
70
end
71
71
end
72
72
elseif (not isVehicleOrKeyOwner ) then
73
73
if Config .Notifications then
74
- TriggerEvent (' notifications' , " #FF0000" , " Schlüssel " , " Du besitzt keinen Schlüssel für dieses Fahrzeug " )
74
+ TriggerEvent (' notifications' , " #FF0000" , _U ( ' notification_header ' ), _U ( ' n_key_noey ' ) )
75
75
elseif Config .OkokNotify then
76
- exports [' okokNotify' ]:Alert (" Fahrzeug " , " Du besitzt keinen <span style='color:#FF0000'>Schlüssel</span> für dieses Fahrzeug. " , 5000 , ' error' )
76
+ exports [' okokNotify' ]:Alert (_U ( ' notification_header ' ), _U ( ' okok_key_noey ' ) , 5000 , ' error' )
77
77
else
78
- TriggerEvent (' esx:showNotification' , ' Du besitzt keinen Schlüssel für dieses Fahrzeug ' )
78
+ TriggerEvent (' esx:showNotification' , _U ( ' key_noey ' ) )
79
79
end
80
80
end
81
81
elseif IsPedInAnyVehicle (GetPlayerPed (- 1 ), false ) then
82
82
if (GetPedInVehicleSeat (veh , - 1 ) == GetPlayerPed (- 1 )) then
83
83
vehicles [StateIndex ][2 ] = not GetIsVehicleEngineRunning (veh )
84
84
if vehicles [StateIndex ][2 ] then
85
85
if Config .Notifications then
86
- TriggerEvent (' notifications' , " #00EE00" , " Dein Fahrzeug " , " Dein Fahrzeug wurde gestartet " )
86
+ TriggerEvent (' notifications' , " #00EE00" , _U ( ' notification_header ' ), _U ( ' n_engine_start ' ) )
87
87
elseif Config .OkokNotify then
88
- exports [' okokNotify' ]:Alert (" Fahrzeug " , " Der Motor wurde <span style='color:#47cf73'>gestartet</span>. " , 5000 , ' info' )
88
+ exports [' okokNotify' ]:Alert (_U ( ' notification_header ' ), _U ( ' okok_engine_start ' ) , 5000 , ' info' )
89
89
else
90
- TriggerEvent (' esx:showNotification' , ' Der Motor wurde ~g~gestartet ' )
90
+ TriggerEvent (' esx:showNotification' , _U ( ' engine_start ' ) )
91
91
end
92
92
else
93
93
if Config .Notifications then
94
- TriggerEvent (' notifications' , " #FF0000" , " Dein Fahrzeug " , " Dein Fahrzeug wurde gestoppt " )
94
+ TriggerEvent (' notifications' , " #FF0000" , _U ( ' notification_header ' ), _U ( ' n_engine_stop ' ) )
95
95
elseif Config .OkokNotify then
96
- exports [' okokNotify' ]:Alert (" Fahrzeug " , " Der Motor wurde <span style='color:#FF0000'>ausgeschalten</span>. " , 5000 , ' info' )
96
+ exports [' okokNotify' ]:Alert (_U ( ' notification_header ' ), _U ( ' okok_engine_stop ' ) , 5000 , ' info' )
97
97
else
98
- TriggerEvent (' esx:showNotification' , ' Der Motor wurde ~r~gestoppt ' )
98
+ TriggerEvent (' esx:showNotification' , _U ( ' engine_stop ' ) )
99
99
end
100
100
end
101
101
end
@@ -117,11 +117,11 @@ if Config.OnAtEnter then
117
117
Citizen .Wait (0 )
118
118
vehicle [2 ] = true
119
119
if Config .Notifications then
120
- TriggerEvent (' notifications' , " #00EE00" , " Dein Fahrzeug " , " Der Motor ist bereits eingeschalten " )
120
+ TriggerEvent (' notifications' , " #00EE00" , _U ( ' notification_header ' ), _U ( ' n_engine_onatenter ' ) )
121
121
elseif Config .OkokNotify then
122
- exports [' okokNotify' ]:Alert (" Fahrzeug " , " Der Motor ist bereits eingeschaltet " , 5000 , ' warning' )
122
+ exports [' okokNotify' ]:Alert (_U ( ' notification_header ' ), _U ( ' okok_engine_onatenter ' ) , 5000 , ' warning' )
123
123
else
124
- TriggerEvent (' esx:showNotification' , ' Der ~b~Motor~s~ ist bereits ~g~eingeschalten ' )
124
+ TriggerEvent (' esx:showNotification' , _U ( ' engine_onatenter ' ) )
125
125
end
126
126
end
127
127
end
0 commit comments