Skip to Content
ModulesGame kits

GmodKit

Pointshop and Pointshop 2 items as shop goods and rewards, given by the FluteGModConnect addon.

GmodKit lets the site give Pointshop and Pointshop 2 items on a Garry's Mod server. Once installed, shop goods, cases and other rewards get the "Pointshop item" and "Pointshop 2 item" types. The FluteGModConnect addon on the server hands the item over.

The Pointshop item reward with its Item field
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0; reward types come with RewardsGarry's Modnone of its ownnonenonenone

Install and first setup

The module has no settings and no admin screen of its own. Once it is installed, the "Community setup" list on the admin home page gets the step "Connect your Garry's Mod server to the site". It ticks itself once any Garry's Mod server calls in through the addon. Installing the addon is covered on the Garry's Mod page.

The reward types appear only while the Rewards module is on. The shop, cases and other modules with rewards are built on it.

Sell a Pointshop item

Find the item ID

In Pointshop the item ID is its file name without .lua: for tophat.lua it is tophat. Pointshop 2 takes the item class.

Create the reward

In a shop product, a case or another reward pick the "Pointshop item" or "Pointshop 2 item" type and enter the ID in the "Item" field. Set the reward's name and picture yourself; by default the reward is named after the ID.

Check the delivery

Buy the product with a test account that has Steam linked. If the player is in game, the item arrives with the next sync. If not, the delivery waits until they join.

An item the player already owns is not given twice, and the delivery counts as done. With a full Pointshop 2 inventory the delivery waits and the player is asked in chat to free a slot. Revoking the reward does not take the item back.

Reward settings

FieldWhat it changesDefault
"Item"Pointshop item ID or Pointshop 2 item class, up to 64 charactersempty, required

For developers

The module registers the GameLink actions gmod.ps.item.give and gmod.ps2.item.give with an item argument for Garry's Mod servers, and the gmodkit.pointshop and gmodkit.pointshop2 types in Rewards. The addon reports these actions to the site only while Pointshop or Pointshop 2 is loaded on the server.

How a module sends actions to a server and receives its events: Game servers from a module.

Troubleshooting

For any other message, use the error lookup.

Use the item ID: letters, digits, dots, dashes and underscores

The "Item" field got spaces, non-Latin letters or a file path. Enter only the item's file name without .lua.

What happened to a command sent to the server shows in AdminServersSent to servers. When the site knows in advance that the server cannot deliver (the plugin is connected but did not report this action, or there is no plugin), no command is sent and the same reason stays on the reward itself.

ReasonWhat to do
"The server plugin cannot do this. Update the plugin"Pointshop or Pointshop 2 is not loaded on the server, or FluteGModConnect is out of date
"The server plugin rejected the parameters"Pointshop has no such item. Check the ID
"The player is not on the server"the delivery waits until the player joins
"The Flute plugin is not installed on this server"install the addon following the Garry's Mod page

More

On this page