Leaderboard
Popular Content
Showing content with the highest reputation on 05/10/21 in all areas
-
You're welcome! Take it by heart if you face such problems in the future. It is important actually take effort in life, at least in things that you truly care about.1 point
-
HAHAHA aye everything is working i just rescripted it it was apart of the 2017 version. its looking good.1 point
-
Скорее всего вам addDebugHook нужен. local function onPreFunction ( sourceResource, functionName, isAllowedByACL, luaFilename, luaLineNumber, eventName, ... ) if ( sourceResource ~= getResourceFromName ( "admin" ) ) then -- название нужного ресурса (в примере: admin) return end outputDebugString ( eventName ) -- вывод в окно отладки названия события end addDebugHook ( "preFunction", onPreFunction, { "triggerServerEvent" } ) Когда сработает событие в нужном ресурсе, хук отследит это и отобразит в дебаге название.1 point
-
I think you can download from this link https://drive.google.com/file/d/1RlBWAoc_1Iv0ObU3aG_5oMMkCpvWhio8/view?usp=sharing1 point
-
No, we won't reconsider your ban.. you did too many malicious things against MTA. Not just being into cheat development activities, you know how much worse it got.1 point
-
1 point
-
Thank you. If the server version that you sent me is correct, then the error message is contradicting the version string of the server. This is very odd and could be a MTA issue. I want to perform local tests on the resource myself. Can you send me the resource in a .ZIP archive so I can run it on my computer? I will be able to further help you after local testing. Please include meta.xml and all script files.1 point
-
I am confused. You are using a very recent MTA server. Could you show me the exact message that the server is giving you? You've not told me all the details because I know what type of message you are referring to. Also, you should show me the contents of your meta.xml file. Look at this post for a fix to make the GUI non-visible using F10 if you are outside a vehicle. To force it into non-visible state, you have to call the guiackapa function with false as first argument, like this: guiackapa( false ) Use the function inside your login panel script to make any GUI non-visible that should not be visible while your login panel is. For example, force the vehicle UI non-visible each time you set the login UI as visible. Glad to be of help!1 point
-
Go into your MTA server console and type in "ver". I don't know how lemehost exposes the server to you so please give me your feedback. Inside the MTA server console you should see the MTA version of the running server. Copy that text and post it here so I can check about scripting incompatibility. Here is the fixed script excerpt. You wrongfully used the client event variable in a command handler. Please do not mix functions as both command and event handlers. Use shims for interop, like this: -- Switch Engine -- function switchEngine ( player ) local vehicle = getPedOccupiedVehicle ( player ) -- Check if the player is in any vehicle and if he is the driver if vehicle and getVehicleController ( vehicle ) == player then local state = getVehicleEngineState ( vehicle ) setVehicleEngineState ( vehicle, not state ) end end addCommandHandler ( "switchengine", function( player ) switchEngine(player) end ) addEvent("switchEngine", true) addEventHandler("switchEngine", root, function() switchEngine(client); end )1 point
-
So I was inactive for a bit (on and off SAES, player since 2010ish). But today, I was going through my spam folder cleaning it up and somehow a notification for this post was there. WTF! The emails I used for my gta/mtasa needs were from waay back some even inactive etc. Anyway, wanted to login here after years just to say thank you to everyone that contributed. It means a lot to players that grew up playing MTA. The fact that you guys are keeping it updated in 2021 shows just how passionate all of you are in whatever you are doing. keep it up ! just imagine in 50 years mtasa servers still running. this is legendary! - quality1 point
-
1 point
-
Hello pixel77! Times are moving on and technology is becoming more robust. With the constant improvement of technology over time come more thorough requirements for developers to specify data in their code. It looks like MySQL does not want to assume implicit default values for table fields by default anymore which I think is fine. I recommend you to either modify the SQL table definitions to provide default field values where there are not or to always specify the field values in INSERT statements that have no default values. Otherwise you may risk further incompatibilities with future MySQL versions due to technological progress.1 point
-
Try this set global sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" in mysql1 point
-
Hi, welcome to the forums! Your thread has been moved to a more language-specific so you can get better assistance in your native language.1 point
-
Closing this as requested! Please use the Report button going forwards as we might not catch it otherwise.1 point
-
Hi everyone! Release small, but maybe useful resource for servers with default map without any mapping. This resource allows for you use getGroundPosition (without Z axis) on server-side. How it works? All map heights wrotten to file, and resource just read it for get Z position. Not 100% accuracy, but anyway it works. What bugs you can detect with this resource? 1. Float positions will be always rounded to nearby integer. 2. If you remove world models, script dont know about that and will return position on removed object. 3. If you add new objects to map, script dont know about that and will return position on world object. How use that? exports.ground:getGroundPosition(x, y) Where it can be used? 1. Random airdrops? 2. Unbug script with random position nearby player? 3. Random forest generation on server-side? Future plans 1. Add method for check water in position. 2. Add method for get material in position. 3. Add method for get object info in position (world/custom, id) 4. Release script for capture map heights. Little demo Download link https://drive.google.com/open?id=1JCYiKPRcv7a6Cw4g2MZgbsVEk3G6H_t81 point
-
Hello, We, the eXo-Reallife team, would like to release a module that is also used on our server. It is a pathfinding module developed by Jusonex and StiviK. The module uses the A * algorithm. (https://en.wikipedia.org/wiki/A*_search_algorithm) We use this for our GPS: Why did we develop a module for this and did not simply write a script? This has a very simple reason. The module calculates the routes in your own threads, which has the advantage that it is much faster than a script, and secondly, you can calculate how much routes as you want side by side. This will not cause any lags etc.! What are the features of the module? The module can load several graphs / nodes side by side The module calculates the routes in its own threads Very useful API functions (such as findNodeAt or getNodeNeighbors) What are the main features? int loadPathGraph (String pathToGraphFile) This function loads the graph from the given file and returns a GraphId which you need for all other functions. If something does not work, false is returned. bool findShortestPathBetween (int graphId, float startX, float startY, float startZ, float endX, float endY, float endZ, function callback) This function finds the shortest route between the points. (Unfortunately, no vectors can be handed over!) The callback function is called when the calculation is finished. As an argument, either a table is returned that contains all nodes, or false if no route is found. bool unloadPathGraph (int graphId) You can use this function if you no longer need and want to unload the graph, it returns true if everything is fine, false if an error has occurred. You will find all the other functions that are included in our documentation. Why is the eXo team releasing all this? Well, that has the simple reason, we want to share our work with others and not just keep it for us! We hope we can enrich you with it and vlt. Even help! Where can I download the module? The whole module is open-source and can be viewed in our GitHub organization. It's released under the MIT License. GitHub organization: https://github.com/eXo-MTA Repository: https://github.com/eXo-MTA/ml_pathfind Download the module (Windows / Linux): https://github.com/eXo-MTA/ml_pathfind/releases Nodes of all roads in SA: https://github.com/eXo-MTA/ml_pathfind/blob/master/test/sa_nodes.json If you find any mistakes or suggestions, you can simply create a new issue and we will look into it. So now that's it, have fun with the module! - StiviK and the eXo-Reallife team (Original thread in German: https://www.mta-sa.org/thread/36365-release-mta-sa-pathfinding-module/?postID=407938#post407938)1 point
-
0 points