• Help with player models
    3 replies, posted
Hi, Asking for help again. (I really appreciate it btw). I know how to add player models to pointshop 1 but how would i make it so that on JailBreak Guards could only use certain player models and prisoners could only use the prisoner models. Thanks Callum
Which jailbreak gamemode are you using?
Jailbreak 7 by Excl :)
I took a look at the jailbreak 7 source code on Github, and it [URL="https://github.com/kurt-stolle/jailbreak/blob/master/gamemode/core/sv_player.lua#L39"]the team names[/URL] seem to be TEAM_PRISONER and TEAM_GUARD. Within the Pointshop Documentation, you may override the function function ITEM:OnEquip within your item code and add a condition to check the team. You may change OnEquip to OnBuy. (see [URL="http://pointshop.burt0n.net/items/functions"]here[/URL]), here is an example; [CODE] function ITEM:OnEquip(ply) if ply:Team() == TEAM_PRISONER then return false end end [/CODE] If placed in your item code this will prevent people on the prisoner's team equipping the item (or your playermodel as you mentioned).
Sorry, you need to Log In to post a reply to this thread.