• How do I make a PNG preview in PointShop?
    5 replies, posted
One of the things that I recently did with the PointShop for a server I'm on is successfully get particles to work, and be buyable. However, if any of you have done this as well, there's not going to be a preview of said particle showing in the box where you click to buy it (see [URL="http://i.imgur.com/uhTvuXC.png"]this image[/URL] if you don't know what I mean), or a dynamic preview on the player model pane to the right. This is expected, since those areas obviously are meant to display models of props, not particles. However, for my purposes, I need it to be able to display the particles. So I have two options here; make dynamic previews of particles viewable as a preview, or use a PNG image of them that's downloaded by the server. Either of these will work, and I have no preference towards this (although dynamic previews will most definitely be better, I just need the player to get a general idea of what they're buying). If you can actually figure out how to get PointShop to correctly preview particles, I'll be rather happy. :p Additional issue: I'm also trying to make buyable skinned crowbars, and so far, it seems to have worked out fine. The exception is that some of the crowbars are composed of a material only, since it's a reskin, so I don't have a way to give it a proper preview. What would I do in this situation?
i would suppose that you know the T Icons are blue backgrounds with the gun on it? - just take a picture of the skin and make the background invisible by cutting it. Thats what i would reccomend For your additional issue, i dont know anything about pointshop though, so i cant help you with the displaying particles
The suggestion you gave regarding the models would work, probably. Although it's not nearly as convenient as displaying a dynamic model of it, it'll work. I mean, I'd much rather an actual model, so that issue isn't closed yet, but if I don't get any answers regarding it, this is the path I'll take.
[lua]ITEM.Name = "name" ITEM.Price = 1000 ITEM.Model = 'models/customico/test.vmt' //You could add your image here // and change the lower line ITEM.Checked = true ITEM.VIP = true function ITEM:OnEquip(ply, modifications) if not ply._OldModel then ply._OldModel = ply:GetModel() end timer.Simple(1, function() ply:SetModel(self.Model) end) // self.Model would have to be changed to ''models/player/model.mdl' end function ITEM:OnHolster(ply) if ply._OldModel then ply:SetModel(ply._OldModel) end end[/lua] This would work for player models, add me on steam might be able to help you out if that doesn't. Steam: jjt8521
Isn't it ITEM.Material?
Sorry, you need to Log In to post a reply to this thread.