Skip to content

Commit

Permalink
Get vehicle table from vehicle list instead of the entity
Browse files Browse the repository at this point in the history
  • Loading branch information
creator2013 committed Jan 11, 2025
1 parent d0ccecf commit 43334ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autorun/photon/cl_emv_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local function DrawCarLights()
for _, ent in pairs(Photon:AllVehicles() ) do
if IsValid(ent) and ent:Photon() then
if not ent.Photon_RenderLights then
Photon:SetupCar(ent, ent.VehicleTable.Name)
Photon:SetupCar(ent, list.Get("Vehicles")[ent:GetVehicleClass()].Name)
else
if should_render_reg:GetBool() then
ent:Photon_RenderLights(
Expand Down

0 comments on commit 43334ba

Please sign in to comment.