Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview window #293

Open
affirno opened this issue Mar 20, 2019 · 1 comment
Open

Preview window #293

affirno opened this issue Mar 20, 2019 · 1 comment

Comments

@affirno
Copy link

affirno commented Mar 20, 2019

Equipping a custom model makes the preview window display an error. Hovering over the equipped model will correctly display it. It goes back to normal if you unequip the model.

People can see the model perfectly fine in game, it's only in the pointshop window that it does not show.

@Jabbers99
Copy link

Jabbers99 commented Apr 1, 2020

I think this could be an issue with the model itself.
When calling the :GetModel() clientside on the player, it returns two models/
My fix:

if LocalPlayer():GetModel():sub(1,13) == "models/models" then
	self:SetModel(LocalPlayer():GetModel():sub(8))
else
	self:SetModel(LocalPlayer():GetModel())
end

File: vgui/DPointShopPreview.lua:128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants