Clientside CSharp FAQ: Difference between revisions
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
{{FAQContainer| | {{FAQContainer| | ||
How to stop the player losing hp when running?| | 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}} | 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}} | ||
Revision as of 17:20, 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 to work around this