Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 3.04 KB

definitions.md

File metadata and controls

20 lines (16 loc) · 3.04 KB

Definitions

Due to the dynamic nature of JavaScript CLEO Redux needs to know an interface of each native command, i.e. a number of input arguments and returned values and their types. Sanny Builder Library serves as the source of command definitions for CLEO Redux.

At start CLEO validates that a definition file is present and correct and if not tries to download it from GitHub (see the table below) into your local CLEO/.config directory. If that did not happen, or you don't want to let CLEO make network calls, manually download the required file and place it in the CLEO/.config directory.

Game File Minimum Required Version
GTA III, re3 gta3.json 0.354
GTA VC, reVC vc.json 0.364
GTA San Andreas (Classic) 1.0 sa.json 0.795
GTA III: The Definitive Edition gta3_unreal.json 0.284
Vice City: The Definitive Edition vc_unreal.json 0.293
San Andreas: The Definitive Edition sa_unreal.json 0.401
GTA IV gta_iv.json 0.88
Unknown (32-bit) unknown_x86.json 0.236
Unknown (64-bit) unknown_x64.json 0.239
Bully: Scholarship Edition bully.json 0.84

CLEO Redux uses compound definitions (a combination of the primary JSON file for the current game and a JSON file for the Unknown host). It lets SDK commands to work in JS scripts regardless of them being defined or not in the primary JSON file. You should notice that during updates CLEO downloads both <game>.json and unknown.json as well as the accompanying enums.js files. It should not affect any existing scripts.