Native function

From GTAModding
Jump to: navigation, search

A native function is a one of the functions exposed by the RAGE engine to be called from a script. Comparing to the SCM engine from previous GTA 3D series, which used thousands of opcodes assigned for commands both handling the scripts and performing the in-game tasks (such as manipulating peds, vehicles, displaying texts, etc), RAGE has less than 100 opcodes only to handle the scripts itself. To retrieve the data and make any change in the game's world, a SCO script invokes an appropriate native function using a special opcode.


There are something like ~3000 of natives in GTA IV. Their names are stored in the game's executable file until patch, they was replaced with their hashes from patch.


GTA V features ~4500 natives and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV scripts were using only 2/3 of them). There is no original native name list in GTA V, name hashes were used instead.

See also

External links

v · d · e
GTA 5 Grand Theft Auto V
File Formats.dat.gfx.ide.meta.patch.rpf
DocumentationBink VideoNative functions
MultiplayerGTA Net GTAForums: GTA Online
Useful linksCommunity portalDiscussion forumsGTA V Modding Forum
v · d · e
GTA 4 Grand Theft Auto IV
File Formats.dat.gxt.ide.img.ipl.nod.sco.rpf.rrr.wad.wbd/.wbn.wdd.wdr.wft.whm.wpl.wtd
DocumentationAudioBink VideoCryptographyCutscenesImage listingMap ListingNative functionsPathsScenariosVTableWeapons
ToolsASI LoaderENBSeriesG-TextureGIMSIV NeedleOpenIVScoclSparkIVXLiveLessWPL ManagerX Mod Installer
AliceC++ Script Hook.NET Script Hook
TutorialsImporting Textures with OpenIVImporting Textures with SparkIV
ModificationsGostown IVFour MultiplayerIV Multiplayer
Useful linksCommunity portalDiscussion forumsGTA IV Modding ForumMods on