• lua code to give pointshop 2 points
    5 replies, posted
so im using mistforums and in the donation tab I can have a custom lua code run upon purchase RunConsoleCommand(ps2_addpoints",LocalPlayer():SteamID(),points,5000 ) I have that code assuming it should work? im not very good at lua
Assuming you want to run this on the client judging from the LocalPlayer(), this probably will not work, since you can't give points clientside.
how would I go about making it work? any idea?
No idea since I never used pointshop. But you probably should not be using console commands for this.
You can use PS_GivePoints in a serverside file to give points. Points | PointShop Documentation for Garry's Mod
Pointshop 2 has big documentation. Why not read it first? Ctrl-F is a good hotkey to search. Its actually place for asking help with kinda self-written code, not "I installed addon on my server and it doesn't work. Help me idk lua much"
Sorry, you need to Log In to post a reply to this thread.