Jump to content

SOS! Help with StartResource


Recommended Posts

I have a resource which runs another resource when the server comes player:

function PlayerJoin()
	resource = getResourceFromName("player-auth")
	startResource(resource)
end
addEventHandler("onPlayerJoin", root, PlayerJoin)

The problem is this: This resource is triggered FOR ALL PLAYERS, and I need it to ONLY run FOR the PLAYER WHO JOINED!

 

HELP, PLEASE!

Link to comment
  • Scripting Moderators
7 minutes ago, Mr. Maxilian said:

I have a resource which runs another resource when the server comes player:


function PlayerJoin()
	resource = getResourceFromName("player-auth")
	startResource(resource)
end
addEventHandler("onPlayerJoin", root, PlayerJoin)

The problem is this: This resource is triggered FOR ALL PLAYERS, and I need it to ONLY run FOR the PLAYER WHO JOINED!

 

HELP, PLEASE!

What you try to achieve, trigger event? I don't think that this is possible to do, that you can start resource for certain player.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...