Skip to content

Commit

Permalink
Removed debug shit
Browse files Browse the repository at this point in the history
  • Loading branch information
justarandomguyintheinternet committed Dec 10, 2023
1 parent 7cff795 commit cc17772
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,11 @@ radio = {
Cron = require("modules/utils/Cron"),
observersV = require("modules/vehicle/observersV"),
observersP = require("modules/physical/observersP"),
version = 2.0
version = 2.3
}

function radio:new()
registerForEvent("onInit", function()
Observe("PocketRadio", "HandleVehicleRadioEvent", function (_, evt)
print("HandleVehicleRadioEvent", evt.station)
end)

Observe("PocketRadio", "HandleRadioToggleEvent", function ()
print("HandleRadioToggleEvent")
end)

-- Observe("PocketRadio", "HandleVehicleRadioStationChanged", function (_, evt)
-- print("HandleVehicleRadioStationChanged", evt.radioIndex)
-- end)

Observe("VehicleComponent", "OnRadioToggleEvent", function (_, evt)
print("OnRadioToggleEvent")
end)

Observe("VehicleComponent", "OnVehicleRadioEvent", function (_, evt)
print("OnVehicleRadioEvent")
end)

math.randomseed(os.clock()) -- Prevent predictable random() behavior

if not RadioExt then
Expand Down

0 comments on commit cc17772

Please sign in to comment.