Jump to content

A newbie question


CTCCoco

Recommended Posts

just for better finding of something, and so if something doesn't work you can turn it off, and restarting something wont cause whole reset.

its really recommended to at least use few groups( interface, vehicle, player, login, etc systems, utilities)so you don't get lost.

also you have to separate gamemodes from maps, to swap maps w/o stopping gamemode.

Link to comment

Karlis, you're answering a different question - he's asking if there's a benefit to having multiple script files, not multiple resources.

So, no, it doesn't matter from a technical sense - as far the Lua is concerned they may as well all be one file. The benefit to splitting it up is that it makes it easier to find what code you're after, and generally lets you separate different areas of your code from each other. You'll probably find your code easier to understand if you split it up, especially if you come back to it in 6 months time!

Link to comment
Karlis, you're answering a different question - he's asking if there's a benefit to having multiple script files, not multiple resources.

So, no, it doesn't matter from a technical sense - as far the Lua is concerned they may as well all be one file. The benefit to splitting it up is that it makes it easier to find what code you're after, and generally lets you separate different areas of your code from each other. You'll probably find your code easier to understand if you split it up, especially if you come back to it in 6 months time!

Thank you all for the help. I will do what you say.

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