Jump to content

Help


Recommended Posts

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

What do you mean by "start mod" and "some players"?

Posted

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.

Script Trading Status

Successful Trading : 26

Scam : 0

On Sale : Banking System SQL Based

On Sale : Housing System MySQL Based

Download and Support my new script on Community : http://community.mtasa.com/index.php?p=resources&s=details&id=11686

SQL Based Housing

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

What do you mean by "start mod" and "some players"?

i mead start mod like deathmatch, race....

like arena.

  • Moderators
Posted
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)

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
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 ?

  • Moderators
Posted
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) 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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