User:Ccw: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
===<syntaxhighlight lang="lua">Comments:</syntaxhighlight>===
===<syntaxhighlight lang="lua">Comments:</syntaxhighlight>===
''There are no comments. Be the first to comment on this article!''
''There are no comments. Be the first to comment on this article!''
== ==

Revision as of 04:20, 20 June 2009

Coder.gif This user is an MTA developer


Proposed Lua additions

Client and server function

setElementFrozen ( element, bool )

To work with vehicles, peds and dynamic objects like barrels and what not.

Server event

onSettingChange ( name, oldValue, newValue )

So the resource can take action if one of its settings get changed. Could even cancel the change I suppose.


Comments:

There are no comments. Be the first to comment on this article!