EngineRequestModel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (reveerted)
No edit summary
Line 1: Line 1:
modelID = engineRequestModel("ped")
__NOTOC__
{{Client function}}
{{New feature/item|3.0160|1.5.7|20147|This function is used to assign the next available model ID to a certain element type. Currently only "ped" is supported.}}
{{Note|
Needs checking / improving.}}


https://github.com/multitheftauto/mtasa-blue/commit/34d4eed068f9c957d977044e8c7fd36e087ff09a
==Syntax==
<syntaxhighlight lang="lua">
bool engineRequestModel ( str elementType )
</syntaxhighlight>
===Required Arguments===
*'''elementType''': this must be "ped".


Note: reverted in https://github.com/multitheftauto/mtasa-blue/commit/242684e5a17e78cd6f7ac36ba362836114b51671
===Returns===
Returns an ''integer'' of the model ID that was available to be assigned to the element type, ''false'' if no free model ID available or invalid element type.
 
==Example==
{{Example}}
 
==See Also==
{{Engine functions}}

Revision as of 17:36, 8 September 2019

This function is used to assign the next available model ID to a certain element type. Currently only "ped" is supported.

[[{{{image}}}|link=|]] Note:

Needs checking / improving.

Syntax

bool engineRequestModel ( str elementType )

Required Arguments

  • elementType: this must be "ped".

Returns

Returns an integer of the model ID that was available to be assigned to the element type, false if no free model ID available or invalid element type.

Example

Accessories-text-editor.png Script Example Missing Function EngineRequestModel needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also