Garry's Mod

Garry's Mod

PointShop
❃Louₛₚ 11 Jun, 2020 @ 7:44am
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.
< >
Showing 1-2 of 2 comments
crester  [developer] 11 Jun, 2020 @ 7:57am 
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
Last edited by crester; 11 Jun, 2020 @ 7:57am
❃Louₛₚ 11 Jun, 2020 @ 8:35am 
Oh thanks, that's nice, quite simple.
< >
Showing 1-2 of 2 comments
Per page: 1530 50