• Runconsolecommand lua code now working
    3 replies, posted
Hello, So I'm trying to make it so that people get a crate when they but something in the store, the command works in the console but it doesnt in the lua script Code: RunConsoleCommand("bu3_give "..ply:SteamID64().." 23 1") RunConsoleCommand("bu3_give "..ply:SteamID64().." 24 1") Original Command bu3_give Steamid64 23 1 Package is getting redeemed, also ingame. But lua code isnt working Thanks in advance
You're not supposed to pass the whole thing as one string
I presume you're running this on the server, if you are why make your script run a concommand in the first place? Wouldn't it be better to simply execute the function that gives them the crate?
yeah just watch for the function and make your function call it .. much easier than using runconsolecommand... and better readable
Sorry, you need to Log In to post a reply to this thread.