Difference between revisions of "0247"
Jump to navigation
Jump to search
m (→Shorter format using aliases) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|t}} |
− | | description = | + | | command = REQUEST_MODEL |
− | | | + | | description = Requests the model |
− | + | | syntax1 = 0247: request_model [''int''] | |
+ | | syntax2 = Model.Load( [''int''] ) | ||
+ | | p1t = [''int''] | ||
+ | | p1d = Valid model index as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character | ||
| native = [[REQUEST_MODEL]] | | native = [[REQUEST_MODEL]] | ||
}} | }} | ||
− | |||
− | + | This opcode requests the model to be loaded into the game. It is almost always required when using opcodes that spawns [[Spawn a ped|characters]], [[Spawn a vehicle|vehicles]], objects, or [[weapon]]s. This is also used to speed up loading certain map objects that you want to load quickly. Opcode [[0248]] checks if the model has been loaded, opcode [[038B]] loads all models without the need for 0248, and opcode [[0249]] marks the model as no longer needed. | |
− | |||
− | == | + | == Example == |
− | + | :''See [[009A#Example]], [[00A5#Example]], [[010E#Example]], [[01B2#Example]] | |
− | # | ||
− | + | == Keywords == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ==Keywords== | ||
load, request, model | load, request, model |
Latest revision as of 05:52, 7 July 2017
- Description
- Requests the model
- Syntax
- 0247: request_model [int]
- Model.Load( [int] )
- Parameter
- Native analog
- REQUEST_MODEL
This opcode requests the model to be loaded into the game. It is almost always required when using opcodes that spawns characters, vehicles, objects, or weapons. This is also used to speed up loading certain map objects that you want to load quickly. Opcode 0248 checks if the model has been loaded, opcode 038B loads all models without the need for 0248, and opcode 0249 marks the model as no longer needed.
Example
Keywords
load, request, model