Jump to content

Help


Recommended Posts

you can pass player reference as formal argument in function and you can process the statements in that functions using that player reference. Then all statements will be executed for that player reference not for all server players.

Link to comment
  • Moderators
so, if i need make script that start mod for some players (not all players) what function should i use?

Using:

loadstring 

But it is a complex process/project, I do not recommend you to start building it. (and no it isn't just loadstring, it is much more than that)

Link to comment
so, if i need make script that start mod for some players (not all players) what function should i use?

Using:

loadstring 

But it is a complex process/project, I do not recommend you to start building it. (and no it isn't just loadstring, it is much more than that)

can u give me an example ?

Link to comment
  • Moderators
so, if i need make script that start mod for some players (not all players) what function should i use?

Using:

loadstring 

But it is a complex process/project, I do not recommend you to start building it. (and no it isn't just loadstring, it is much more than that)

can u give me an example ?

local exampleString = ' 
addEventHandler("onClientRender", root, 
function () 
setElementPosition(localPlayer, 0, 0, 100) -- I am stuck... Not funny! 
end) 
' 

Load the code for a single client!

loadstring(exampleString) 

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...