Jump to content
RAGE Multiplayer Community

What language to utilise


DignitySAMP
 Share

Recommended Posts

Hey all,

 

I come from SA-MP and considering making the move. I'm pretty well versed in Pawn however JS and C# are new to me.

 

I'm a bit confused about the "meta". Namely, is there any? What languages are ideal for a Rage MP server? Can you combine both?

Are there benefits to either one?

 

How do I choose what direction I want to go?

 

From what I can see, you can excel using both but the wiki is different (and sometimes incomplete) for both languages?

 

Could someone shed some light on these questions or point me in the right direction?

Link to comment
Share on other sites

1 hour ago, DignitySAMP said:

Hey all,

 

I come from SA-MP and considering making the move. I'm pretty well versed in Pawn however JS and C# are new to me.

 

I'm a bit confused about the "meta". Namely, is there any? What languages are ideal for a Rage MP server? Can you combine both?

Are there benefits to either one?

 

How do I choose what direction I want to go?

 

From what I can see, you can excel using both but the wiki is different (and sometimes incomplete) for both languages?

 

Could someone shed some light on these questions or point me in the right direction?

Both languages can be used on their own to create a complete server, my suggestion is to always pick the language you know more about. You should understand the language to get the full benefits of it. I've seen many new devs simply not learn the language and always ask very basic JavaScript questions and throwing in code that makes no sense. You can combine both languages if you want but it isn't an ideal setup. If you don't have knowledge in both, you'd just kinda have to pick one and learn it in my opinion. They're both equal languages if you can understand and learn their potential.

Link to comment
Share on other sites

That answers my question pretty well to be fair.

 

I'll probably go with Javascript then, considering it seems to be the one with the most support and information available.

 

Letting this topic remain a bit longer for more feedback though.

  • Like 1
Link to comment
Share on other sites

On 6/25/2021 at 10:50 PM, DignitySAMP said:

Hey all,

 

I come from SA-MP and considering making the move. I'm pretty well versed in Pawn however JS and C# are new to me.

 

I'm a bit confused about the "meta". Namely, is there any? What languages are ideal for a Rage MP server? Can you combine both?

Are there benefits to either one?

 

How do I choose what direction I want to go?

 

From what I can see, you can excel using both but the wiki is different (and sometimes incomplete) for both languages?

 

Could someone shed some light on these questions or point me in the right direction?

Hi, welcome.

 

There's actually a plugin created by some developers that accomodates Pawn on the RAGE MP platform, however it might be outdated. -

 

But to answer some of your questions:

 

There are inherant advantages of both JS and C# but I personally think that Javascript is the better option for anyone new to the scene simply because in my experience documentation for the JS Server/Client Development is more up-to-date than the C# counterparts.

 

Additionally, there are more resources available that are created in JS which should help you in developing your understanding.

 

As someone who used to be an SA:MP developer, I think you'll be able to draw a high level comparrisons between Pawn and C#/JS but reastically you should have a look at both C# and JS, try watching a few Getting Started tutorials for both to see which of them you will prefer.

Link to comment
Share on other sites

Hello! I think that JS is best choice. I tried using c# but I dont like using it maybe because syntax. Javascript is okey and simple to use, a lot of documentations on rage mp wiki.  One thing why I prefer JS is objects. I love to use them. Classes are maybe a little bit more complicated but if you use just objects it will be fine for scripting server. Also for CEF you need Javascript. 

Pawn is outdated hard. I worked on SA-MP servers and Pawn doesnt have something like JS or c# has. Big difference is objects or classes where you can store functions and variables all in one. In pawn I used "enum" for storing some players or vehicle data still not perfect like objects/classes. Also Import/Export, Making individuals scripts and systems then just export it and import in other file. Saving and reading files... Yes we used MySQL in Pawn and its really good but I use MongoDB and .json. Simple because its objects type saving. 

Link to comment
Share on other sites

Thanks for the extra replies.

 

Obviously using PAWN when other alternatives are available would be counter productive.

 

I also noticed that the wiki has less information on c# than JS. That makes the choice easier. :)

Link to comment
Share on other sites

On 6/29/2021 at 1:32 PM, DignitySAMP said:

Thanks for the extra replies.

 

Obviously using PAWN when other alternatives are available would be counter productive.

 

I also noticed that the wiki has less information on c# than JS. That makes the choice easier. :)

While the C# side lacks documentation to an unjustifiable degree; A lot can extrapolated from the Client Side and Server wrappers anyway along with some of the functions being somewhat inline with their JS counter-parts... Using C# for the Client side really just pushes you to further understand GTA's underlying systems; I personally wrote a custom NativeUI library because of Rage's awful extendibility on the client side.

So if you do choose to use C# just expect to be writing your own systems to work-around stuff that can't be extended; Or wrapper classes to simplify those that already exist.

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...