Garry's Mod

Garry's Mod

PointShop
❃Louₛₚ 11. juni 2020 kl. 7:44
Pointshop on a specific gamemode only?
Hello, how can I make that Pointshop is only active on a given gamemodes only? I don't like that people change skin on Murder or YTIL, but for Deathrun (for example) is funny.
< >
Viser 1-2 af 2 kommentarer
crester  [udvikler] 11. juni 2020 kl. 7:57 
pointshop/lua/autorun/pointshop.lua

put this code at the top with filling in your preferred gamemodes to the whitelist table:
local whitelist = { ["sandbox"] = true, ["darkrp"] = true } if not whitelist[engine.ActiveGamemode()] then return end
Sidst redigeret af crester; 11. juni 2020 kl. 7:57
❃Louₛₚ 11. juni 2020 kl. 8:35 
Oh thanks, that's nice, quite simple.
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50