1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

ClientsideModel FIX

This commit is contained in:
Hellss
2022-08-14 15:47:21 +03:00
parent d17cb74904
commit 61e01659a2
16 changed files with 160 additions and 85 deletions

View File

@@ -322,8 +322,8 @@ function SWEP:CreateModels( tab )
string.find(v.model, ".mdl") and file.Exists (v.model, "GAME") ) then
v.modelEnt = ents.CreateClientProp("models/metrostroi/81-717/reverser.mdl")
v.modelEnt:SetModel(v.model)
if (IsValid(v.modelEnt)) then
v.modelEnt:SetModel(v.model)
v.modelEnt:SetPos(self:GetPos())
v.modelEnt:SetAngles(self:GetAngles())
v.modelEnt:SetParent(self)