Discord
Steam
/
Garry's Mod
/
Developers
/
ConVar not bei..
Login/Join
Event Log
ConVar not being created
0 replies, posted
Search
In This Thread
[CODE] --[[ ©2016 Metamorphics (STEAM_0:1:52851671 is the one and only author) Covered by Attribution-NonCommercial-NoDerivatives 4.0 International http://creativecommons.org/licenses/by-nc-nd/4.0/ http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode ]]-- AddCSLuaFile() /* Command Creation */ concommand.Add("tfs_getatt", function(ply) PrintTable(ply:GetAttachments()) end) concommand.Add("tfs_setspeedforce", function(ply, cmd, args) if ply:IsSuperAdmin() then ply:SetNWFloat("TFS_Speedforce",args[1]/100) end end) CreateConVar("tfs_rp", "0", bit.bor(FCVAR_REPLICATED, FCVAR_ARCHIVE), "Set to 1 to enable RP mode. RP mode disables slow motion and will not allow you to set your Speedforce percentage.") [/CODE] My commands and ConVar are not being created. I can tell because I'm running an if statement where it checks the value of tfs_rp. It returns nil. The code works flawlessly in single player and a P2P server, but returns nil in a dedicated server.
Sorry, you need to
Log In
to post a reply to this thread.