Server Scripting Functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Changed translations hierarchy)
 
(160 intermediate revisions by 62 users not shown)
Line 1: Line 1:
This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]
<pageclass class="server"></pageclass>
 
{{Adding_Pages_to_Categories_and_Templates}}
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function, create an issue in [https://github.com/multitheftauto/mtasa-blue/issues our GitHub repository.]
 
Head over to [[Module functions]] for a list of non-native functions and modules that are available.
 
 
 
==Important Reminder: Works in Progress==
Check the [http://mtasa.com/once-upon_a_time-there_was-this_girl/index.php?title=Main_Page main page] 'works in progress' section. There are other things being developed that need feedback immediately!
 
==Unfinished Functions==
<div style="border:3px solid red;margin-bottom:3px;padding-left:10px;"><div style="float:right;padding-right:5px;font-weight:bold;"></div>
*'''NEED SYNTAX, MTA TEAM:''' [[:Category:Need Syntax]]
</div>
*'''Incomplete Functions:''' [[:Category:Incomplete]]
*'''Incomplete Events List:''' [[:Category:Incomplete Event]] --Should be on navigation menu
*'''Written material accuracy/completion check:''' [[:Category:Needs Checking]]
 
''See page descriptions for directions to modify them.''
 
 
Someone add pages for these script functions please:
* string getCameraMode ( player thePlayer )  --- possible modes "player", "fixed"
* float float float getCameraPosition ( player thePlayer )
* float float float getCameraRotation ( player thePlayer )
* element getCameraTarget ( player thePlayer )
 
* bool setCameraMode ( player thePlayer, string mode ) --- possible modes "player", "fixed"
* bool setCameraPosition ( player thePlayer, float x, float y, float z )
* bool setCameraRotation ( player thePlayer, float rx, float ry, float rz )
* bool setCameraLookAt ( player thePlayer, float x, float y, float z )
* bool setCameraTarget ( player thePlayer, element target )
 
Almost sleeping on my keyboard, sorry for making someone else having to do this, but I figured this is better than forgotting to add them. - ChrML
 
** I added them all. I just need someone to do the examples (I'm not a programmer :p) and I need someone to verify that my descriptions for [[getCameraMode]] and [[setCameraMode]] are correct -- [[User:JonChappell|JonChappell]]


Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.
For more functions, check the [[Useful_Functions|useful functions page]].
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''
__TOC__
==Account functions==
==Account functions==
{{Account_functions}}
{{Account_functions}}
 
==ACL functions==
{{ACL_functions}}
==Admin functions==
{{Admin_functions}}
==Audio functions==
==Audio functions==
{{Audio_functions}}
{{Audio_functions}}
 
==All Seeing Eye functions==
==Announcement functions==
{{ASE_functions}}
{{Announce_functions}}
 
==Blip functions==
==Blip functions==
{{Blip_functions}}
{{Blip_functions}}
 
==Camera functions==
==Camera functions==
{{Camera functions}}
{{Camera_functions}}
 
==Clothes and body functions==
{{Clothes_and_body_functions}}
==Collision shape functions==
==Collision shape functions==
{{Collision shape functions}}
{{Collision_shape_functions}}
 
==Client functions==
==Cursor functions==
{{Client functions}}
{{Cursor_functions}}
 
==Clothes and body functions==
{{Clothes and body functions}}
 
==Element functions==
==Element functions==
{{Element functions}}
{{Element_functions}}
 
==Event functions==
==Event functions==
{{Event_functions}}
{{Event_functions}}
 
==Explosion functions==
==Explosion functions==
{{Explosion_functions}}
{{Explosion_functions}}
 
==Fire functions==
==File functions==
{{Fire_functions}}
{{File_functions}}
 
==HTTP functions==
{{HTTP_functions}}
==Input functions==
==Input functions==
{{Input_functions}}
{{Server_input_functions}}
 
==Map functions==
==Map functions==
{{Map_functions}}
{{Map_functions}}
 
==Marker functions==
==Marker functions==
{{Marker functions}}
{{Marker_functions}}
 
==Matrix functions==
{{Shared_matrix_functions}}
==Module functions==
{{Module_functions}}
==Object functions==
==Object functions==
{{Object functions}}
{{Object_functions}}
 
==Output functions==
{{Output_functions}}
==Ped functions==
{{Ped_functions}}
==Pickup functions==
==Pickup functions==
{{Pickup functions}}
{{Pickup_functions}}
 
==Player functions==
==Player functions==
{{Player functions}}
{{Player_functions}}
 
==Projectile functions==
{{Projectile_functions}}
==Radar area functions==
==Radar area functions==
{{Radar area functions}}
{{Radar_area_functions}}
 
==Scoreboard functions==
==Resource functions==
{{Scoreboard functions}}
{{Resource_functions}}
 
==Server functions==
==Server functions==
{{Server functions}}
{{Server_functions}}
 
==Spawnpoint functions==
==Settings registry functions==
{{Spawnpoint functions}}
{{Settings_registry_functions}}
 
==SQL functions==
==SQL functions==
{{SQL_functions}}
{{SQL_functions}}
 
==Team functions==
==Team functions==
{{Team functions}}
{{Team_functions}}
 
==Text functions==
==Text functions==
{{Text functions}}
{{Text_functions}}
 
==Utility functions==
==Utility functions==
{{Utility functions}}
{{Utility_functions}}
 
==UTF8 Library==
{{UTF8_functions}}
==Vehicle functions==
==Vehicle functions==
{{Vehicle functions}}
{{Vehicle_functions}}
 
==Water functions==
{{Water_functions}}
==Weapon functions==
==Weapon functions==
{{Weapon functions}}
{{Weapon_functions}}
 
==World functions==
==World functions==
{{World functions}}
{{World_functions}}
 
==XML functions==
==XML functions==
{{XML functions}}
{{XML_functions}}


==Deprecated Functions==
[[ar:Server Scripting Functions]]
[[Category:Deprecated]]
[[de:Server-Seitige Scripting Funktionen]]
[[en:Server Scripting Functions]]
[[es:Funciones_del_Server]]
[[hu:Server Scripting Functions]]
[[pl:Server Scripting Functions]]
[[pt-br:Funções de Scripting do Servidor]]
[[ru:Server Scripting Functions]]
[[tr:Server Scripting Functions]]
[[zh-cn:Server Scripting Functions]]

Latest revision as of 15:13, 7 August 2023

Contributors: Did you create a page but it's not on this list? Confused? Read: Adding Pages to Categories and Templates

This page lists all the server-side scripting functions that have been implemented and are available as native functions. To request a function, create an issue in our GitHub repository.

Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.

Head over to Modules for a list of non-native serverside functions and modules that are available.

For more functions, check the useful functions page.

Client-side scripting functions can be found here: Client Scripting Functions.

Account functions


ACL functions


Admin functions


Audio functions


Announcement functions


Blip functions


Camera functions


Clothes and body functions


Collision shape functions


Cursor functions


Element functions


Event functions


Explosion functions


File functions


HTTP functions

These functions can only be used from within lua blocks in HTML pages hosted by the server


Input functions


Map functions


Marker functions


Matrix functions


Module functions


Object functions


Output functions


Ped functions


Pickup functions


Player functions


Projectile functions


Radar area functions


Resource functions


Server functions


Settings registry functions


SQL functions


Team functions


Text functions


Utility functions


UTF8 Library


Vehicle functions


Water functions


Weapon functions


World functions


XML functions