Skip to content

Commit

Permalink
fix: use VehicleTable.Name for car setup in DrawCarLights function
Browse files Browse the repository at this point in the history
  • Loading branch information
creator2013 committed Jan 11, 2025
1 parent 1016535 commit d0ccecf
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:GetVehicleClass())
Photon:SetupCar(ent, ent.VehicleTable.Name)
else
if should_render_reg:GetBool() then
ent:Photon_RenderLights(
Expand Down

0 comments on commit d0ccecf

Please sign in to comment.