Clientside CSharp FAQ: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (oops wrong dll file name)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{FAQContainer|
{{FAQContainer|
Can I reference DLLs|
Can I reference DLLs|
No you cannot. The '''cs_packages''' folder will only compile '''.cs''' files}}
No you cannot. The '''cs_packages''' folder will only compile '''.cs''' files
 
However, you may reference client '''rage-sharp.dll''' (in dotnet folder) to get auto completion and error-checking in Visual Studio/Code. Even if you get warnings, you will not compile the C# project anyway, you can still just save the .cs files.}}


{{FAQContainer|
{{FAQContainer|
Is it possible to use RAGE serverside JS with clientside C#|
Is it possible to use RAGE serverside JS with clientside C#|
Yes}}
Yes}}
{{FAQContainer|
How to stop the player losing hp when running?|
This is due to player stamina hitting zero, resulting in hp being lost. Use the method '''RAGE.Game.Player.RestorePlayerStamina(1.0F);''' on '''Tick''' event to work around this}}

Latest revision as of 08:58, 13 May 2019


Can I reference DLLs

No you cannot. The cs_packages folder will only compile .cs files

However, you may reference client rage-sharp.dll (in dotnet folder) to get auto completion and error-checking in Visual Studio/Code. Even if you get warnings, you will not compile the C# project anyway, you can still just save the .cs files.


Is it possible to use RAGE serverside JS with clientside C#

Yes