gennariarmando / gta3-script-command-extender

Extend script commands of GTA3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script Command Extender for GTA3

Plugin for developers, helps you define new script commands/opcodes.

Compatibility

Compatible only with GTA3 1.0

Usage

#include "ScmExtenderAPI.h"
#include "CRunningScript.h"
// ...
      // Example of a custom script command.
      // Command id should be an unused one, see script commands list for current game,
      // eventually it's also possible to replace an already existing one.
      const int32_t NEW_COMMAND_ID = 1475;
      ScmExtender::AddOneCommand(NEW_COMMAND_ID, [](int32_t* params) -> int8_t {
          // ...    
          return 0;
      });
// ...

How to install

Grab latest archive.
Move ScriptCommandExtenderIII.asi in the root or "scripts" folder of your GTA3 directory.
Enjoy

About

Extend script commands of GTA3


Languages

Language:C++ 86.7%Language:Lua 13.2%Language:Batchfile 0.1%