Pivity

Blue's Unboxing 3 Custom Lua

Last read Never
#1

Hey guys, so I've been working on adding some custom items to Blue's Unboxing 3 but I ran into a problem trying to define the player. I understand that PLY is the player but for some reason all the commands that I try to run with PLY gives me (1) (mrbell11), which throws an error. I'm just wondering if anyone knows how to fix this

#2

Share the piece of code that is throwing the error and the exact error.

#3
RunConsoleCommand("guthlevelsystem_add_xp", "100", PLY)

is my code and it is getting this error

[ Error ] XP: Player not found!


Guth's level system can be found here (https://github.com/Guthen/guthlevelsystem)

With the console command being guthlevelsystem_add_xp <xp> <name>

#4

its because RunConsoleCommand doesnt accept a Player object, try PLY:Nick() or PLY:SteamID() instead of just PLY

#5

Yea that worked, I truly thought I tried that yesterday

Users viewing this thread
Nobody