Jump to content
RAGE Multiplayer Community

[c#] Is there any way to import class from another file on client-side?


Recommended Posts

Hello. I'm stupid new in c# and rage mp.
I have an problem. How can I  import my class from another cs file on client-side?

clientside_cs.txt logs speak that it can't find my type or namespace. 

Sorry for my English.

Link to post
Share on other sites
Posted (edited)

"files" should be located in your solution.

"classes" can be used via static: Classname.Method(params[])
or via instance of an object: var x = new Classname(constructorParams[]); x.Method(params[]);

Make sure that you use the right namespace. But Visual Studio is doing that normally for you when you creating a new "file"

Edited by Division
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...