Clientside CSharp FAQ: Difference between revisions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
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}} | |||
Revision as of 17:19, 12 December 2018
Can I reference DLLs
No you cannot. The cs_packages folder will only compile .cs files
Is it possible to use RAGE serverside JS with clientside C#
Yes
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