Jump to content

How to use a mod in a dedicated server


Recommended Posts

Hi, I finished this mod, and it works just fine, it does what is supposed to do... when I host a server.

 

I'm using AddTag() to add a tag to a player, which makes him able to do certain actions, to do that I'm using this function

DivineJustice = function(inst)	for k,v in pairs(GLOBAL.AllPlayers) do		if inst.userid == v.userid then			if not v:HasTag("Blocked") then		            v:AddTag("Blocked")			else				v:RemoveTag("Blocked")			end		end	endend

But no matter what I do I can only get it to work locally. Is there a function or a parameter im missing?

mod.zip

Edited by CremeLover
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...