Garry's Mod

Garry's Mod

PointShop
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.
< >
Näytetään 1-2 / 2 kommentista
crester  [kehittäjä] 11.6.2020 klo 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
Viimeisin muokkaaja on crester; 11.6.2020 klo 7.57
Oh thanks, that's nice, quite simple.
< >
Näytetään 1-2 / 2 kommentista
Sivua kohden: 1530 50