#include "script.h" #include "natives.h" void main() while (true) if (IsKeyPressed(VK_F5)) PLAYER::SET_PLAYER_INVINCIBLE(PLAYER::PLAYER_ID(), true);
| Requirement | Tool | |-------------|------| | IDE | (Community free) | | Modding framework | ScriptHookRDR2 | | Native function database | RDR2 NativeDB | | Example project | ScriptHookRDR2 SDK + sample mod | Dev-c Rdr2
Basic code snippet (in VS, not Dev-C++): #include "script
WAIT(0);