Skip to content

Commit

Permalink
fix(client/main): event namings
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Oct 21, 2024
1 parent eb2db83 commit a034827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ local function renderVehicleInfo(vehicle)
})
end

RegisterNetEvent('heli:spotlight', function(serverId, state)
RegisterNetEvent('qbx_helicam:client:toggledSpotlight', function(serverId, state)
SetVehicleSearchlight(GetVehiclePedIsIn(GetPlayerPed(GetPlayerFromServerId(serverId)), false), state, false)
end)

Expand Down Expand Up @@ -220,7 +220,7 @@ local function handleInVehicle()

if IsControlJustPressed(0, toggleSpotlight) and (cache.seat == -1 or cache.seat == 0) then
spotlightState = not spotlightState
TriggerServerEvent('heli:spotlight', spotlightState)
TriggerServerEvent('qbx_helicam:server:toggleSpotlight', spotlightState)
PlaySoundFrontend(-1, 'SELECT', 'HUD_FRONTEND_DEFAULT_SOUNDSET', false)
end

Expand Down

0 comments on commit a034827

Please sign in to comment.