SetElementMatrix: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Add missing min_client_version for server)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Client function}}
{{Shared function}}
{{Needs_Example}}
__NOTOC__  
__NOTOC__  
This function sets matrix to element.
This function sets matrix to element.
Line 5: Line 6:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setElementMatrix ( element theElement, table matrix )       
bool setElementMatrix ( element theElement, table theMatrix )       
</syntaxhighlight>  
</syntaxhighlight>  
{{OOP||[[element]]:setMatrix|matrix|getElementMatrix}}


===Required Arguments===  
===Required Arguments===  
*'''theElement:''' The element which you set matrix
*'''theElement:''' The element which you set matrix
*'''matrix:''' The matrix.
*'''theMatrix:''' The matrix.


===Returns===
===Returns===
Returns ''true'' if the matrix was set succesfully, ''false'' otherwise.
Returns ''true'' if the matrix was set succesfully, ''false'' otherwise.
==Example==
TODO
<syntaxhighlight lang="lua">
--TODO
</syntaxhighlight>


==Requirements==
==Requirements==
{{Requirements|n/a|1.3.0-9.04485|}}
{{Requirements|1.3.0-9.04491|1.3.0-9.04485|}}


==See Also==
==See Also==
{{Client_element_functions}}
{{Client_element_functions}}
[[Category:Needs Example]]

Latest revision as of 18:24, 6 March 2020

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

Before submitting check out Editing Guidelines Script Examples.


This function sets matrix to element.

Syntax

bool setElementMatrix ( element theElement, table theMatrix )       

OOP Syntax Help! I don't understand this!

Method: element:setMatrix(...)
Variable: .matrix
Counterpart: getElementMatrix


Required Arguments

  • theElement: The element which you set matrix
  • theMatrix: The matrix.

Returns

Returns true if the matrix was set succesfully, false otherwise.

Example

TODO

--TODO

Requirements

Minimum server version 1.3.0-9.04491
Minimum client version 1.3.0-9.04485

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.3.0-9.04491" client="1.3.0-9.04485" />

See Also

Shared