Skip to content

Commit

Permalink
Update entity.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
bleonheart committed Aug 30, 2024
1 parent c172dd9 commit 007cbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lilia/gamemode/core/meta/entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
-- @realm shared
-- @treturn bool True if the entity is a simfphys car, false otherwise.
function entityMeta:isSimfphysCar()
if not self then return false end
if not IsValid(self) then return false end
local class = self:GetClass()
return class == "lvs_base" or class == "gmod_sent_vehicle_fphysics_base" or self.IsSimfphyscar or self.LVS or class == "gmod_sent_vehicle_fphysics_wheel" or class == "prop_vehicle_prisoner_pod" or self.Base == "gmod_sent_vehicle_fphysics_base" or self.Base == "gmod_sent_vehicle_fphysics_wheel"
end
Expand Down

0 comments on commit 007cbaa

Please sign in to comment.