Notifications Update!
+ Added notifications (EGRP-Notifications) exports to many different scripts including Engine-Toggle, Seatbelt, CarWipe and Head-Tags.
This commit is contained in:
@@ -28,7 +28,15 @@ end)
|
||||
|
||||
function toggleEngine()
|
||||
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
|
||||
local veheng = GetIsVehicleEngineRunning(vehicle)
|
||||
if vehicle ~= nil and vehicle ~= 0 and GetPedInVehicleSeat(vehicle, 0) then
|
||||
SetVehicleEngineOn(vehicle, (not GetIsVehicleEngineRunning(vehicle)), false, true)
|
||||
--Added notifications for engine toggling
|
||||
if veheng then
|
||||
exports['EGRP-Notifications']:CaptionIcon("Vehicle System", "Engine has been turned off!", "top", 3000, "dark", "", true, "mdi-engine-off")
|
||||
elseif not veheng then
|
||||
exports['EGRP-Notifications']:CaptionIcon("Vehicle System","Engine has been turned on!", "top", 3000, "dark", "", true, "mdi-engine")
|
||||
end
|
||||
--exports['EGRP-Notifications']:Icon("Engine has been toggled!", "top", 5000, "dark", "", true, "mdi-engine")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user