gta.loadCOL: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 5: Line 5:
|parameters = stream data, int modelId
|parameters = stream data, int modelId
|parameter1 = stream data The stream containing the collision data.
|parameter1 = stream data The stream containing the collision data.
|parameter2 = int modelId The model ID.
|parameter2 = int island The island that the collision loads on
|usage = load a custom COL collision file, and replace an existing model's collision with it.
|usage = load a custom COL collision file, and replace an existing collision with it.
|return1 = void
|return1 = void
|returnFail1 = void
|returnFail1 = void
}}
}}

Revision as of 07:10, 30 December 2020

gta.loadCOL

Signature: void gta.loadCOL(stream data, int modelId)

Usage: load a custom COL collision file, and replace an existing collision with it.

Parameters

stream data The stream containing the collision data.
int island The island that the collision loads on

Return

void

On failure: void