
When activated generates a server file when using generate new resource fault_server_contentĪllows you to set custom content that should be placed in the newly generated server file mtalua-generate.activate_shared_file_generation When activated generates a client file when using generate new resource fault_client_contentĪllows you to set custom content that should be placed in the newly generated client file mtalua-generate.activate_server_file_generation If the server is a prefix (true) or a suffix (false) (Prefix s_test Suffix test_s) mtalua-generate.activate_client_file_generation This will treat files named test.slua as server files rver_prefix_type This will treat files named s_test or test_s as server files rver_extensionĬustom extension for server files (Default is lua) If the client is a prefix (true) or a suffix (false) (Prefix c_test Suffix test_c) rver_prefixĬustom suffix/prefix for server files (Default is s_ prefix) This will treat files named test.clua as client files mtalua-generate.client_prefix_type This will treat files named c_test or test_c as client files mtalua-generate.client_extensionĬustom extension for client files (Default is lua) If the shared is a prefix (true) or a suffix (false) (Prefix g_test Suffix test_g) mtalua-generate.client_prefixĬustom suffix/prefix for client files (Default is c_ prefix) This will treat files named test.glua as shared files mtalua-generate.shared_prefix_type This will treat files named g_test or test_g as shared files mtalua-generate.shared_extensionĬustom extension for shared files (Default is lua)
#Mtasa wiki password
URL to the MTA Http Server ernameĪuthentication username for the MTA Http Server required for restarting/starting/stopping resources mtalua-http.passwordĪuthentication password for the MTA Http Server restarting/starting/stopping resources thorĪllows you to set a custom author when generating new resources (meta.xml -> info -> author) mtalua-generate.watermarkingĮnable or disable watermarking of meta files (will place a comment with a notice that the meta was generated by this extension) ta_default_versionĭefault version when generating new resources (meta.xml -> info -> version) ta_default_typeĭefault type of new resources (script, gamemode, map, misc) mtalua-generate.shared_prefixĬustom suffix/prefix for shared files (Default is g_ prefix)

Shared functions will be highlighted in blueĮasy way to generate meta.xml and script filesĮasy way to access documentation on the MTA WikiĬonfiguration Options mtalua-http.enabledĮnable the WebAdmin Http Functionality for restarting/starting/stopping resources mtalua-http.enable_restart_on_saveĮnable automagically restarting resources when saving mtalua-http.enable_search_hintingĮnable search hinting when restarting resources (Requires http whitelisting this ip) mtalua-http.uri Server only functions will be highlighted in orangeĬlient only functions will be highlighted in red
#Mtasa wiki code
OutputDebugString ( "Failed to load script." )ĪddEventHandler ( "onResourceStart", resourceRoot, testFunction )Ĭheck, should work, this is for server side, but i think you could do the same on client-side, with OnClientResourceStart.MTA:SA Lua is a VS Code extension to add syntax highlighting, code completion and other useful functions for MTA San Andreas LUA to VS Code.Ĭode Completion shows what functions are available OutputDebugString ( "Everything okey." ) else Local allowedAuthor = function testFunction () local author = getResourceInfo ( getThisResource (), "author" ) local allowed_author = allowedAuthor if allowed_author then using a lua code that detects if author is turbodymacz, if author field contains my name then script is starting normally, but if somebody tries to steal my script and trying to change the author to his name then script doesn't start.Ĭan somebody at least explain me what functions/events should I use to form such script, or at least write the code if that's possible & faster. A friend of mine told me of existing another kind of protection related to meta.xml file.īasic job of this protection is based on author="turbodymacz" attribute.
