Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. https://wiki.multitheftauto.com/wiki/SetVehicleHandling driveType: 'rwd', 'fwd' или 'awd'.
  2. Kenix

    guiGetText

    local text = guiGetText( yourGuiElement ); if ( text:find( "@" ) ) then outputChatBox( "contains @" ); else outputChatBox( "contains none " ); end Also you can use pregMatch functions. UPD: http://Lua-users.org/wiki/PatternsTutorial http://www.Lua.org/manual/5.1/manual.html#5.4.1
  3. Можно через вращение компонентов либо замены другого транспорта SWAT например или пожарной машины, у них есть крутящаяся турель. https://wiki.multitheftauto.com/wiki/SetVehicleComponentRotation https://wiki.multitheftauto.com/wiki/SetVehicleComponentPosition
  4. Hi everyone, a long time ago (novermber 2018) i started making new project called MTA Racing. This project has an own unique atmosphere legendary games such as: NFS Underground 1/2 + Midnight Club games series by Rockstar games. I am a big fun of it and we started implement it, but this project has status abandoned in april 2019. But right now i decided to finish it in free time. Now i gonna tell you more info about this. Features: Custom mapping around Los Santos, 70% remake. Custom race tracks. Tuning: Spoilers Front/Rear/Side bumbers Neon Lights Windows tinting Race modes: Circluit Sprint URL Speedtrap Top Time Drift Street-X Drag Vehicles: BMW M3 Camaro SS Audi TT Mercedes AMG Subaru Impreza Lexus IS 300 Nissan Skyline R34 Toyota Supra Mitsubishi Lancer Evo X Dodge Viper 2018 Lamborghini Huracan Mercedes E63 Audi R8 Custom OST: 60+ songs (via stream) Languages (You can send me your language and i gonna add it) Russian English Now i gonna show you some screenshots: Open beta test: IP: mtasa://51.75.147.186:22003 Groups: VK: https://vk.com/mta_race Facebook: http://fb.com/mtarace Discord: https://discord.gg/tKZtZWK
  5. It's private. I need test it more properly before adding pull request.
  6. I implemented it in another project. Changing ColModels/Building limits working perfectly with MTA. But i don't tested it with engine functions.
  7. Hi everyone. I just wanna present my script called "radar-merger". I made this script for another project. It uses node js and "combine-tiles" package. It merge every tile .png file into one combined file in gta:sa radar format. Here is GitHub link to project + instruction. GitHub: https://github.com/Kenix157/gta-radar-merger
  8. @IIYAMA It cause another problem with render events, it starts call from end (which is not needed to us, because dx render events has "layers" and you need to call from 1 to table lenght) If you're using table.remove function, everything should work fine after remove item from table. Let me explain: local a = {}; local func = function() end; a[ #a + 1 ] = func; for i = 1, #a do if a[ i ] == func then table.remove( a, i ); end end print( #( a ) ); -- 0 table.remove safely remove item from table, it's not contains a [1] index with nil value, it's clear Proof: local a = {}; local func = function() end; a[ #a + 1 ] = func; for i = 1, #a do if a[ i ] == func then table.remove( a, i ); end end print( #( a ) ); -- 0 local func = function() end; a[ #a + 1 ] = func; print( #( a ) ); -- 1 Another example: local a = { 1, 2 }; local func = function() end; a[ #a + 1 ] = func; for i = 1, #a do if a[ i ] == func then table.remove( a, i ); end end print( #( a ) ); -- 2 local func = function() end; a[ #a + 1 ] = func; for i = 1, #a do if a[ i ] == func then table.remove( a, i ); end end print( #( a ) ); -- 2 And finally (shows how another items is reordered): from { [1] = 1, [2] = func, [3] = 2} -> {[1] = 1, [2] = 2} local func = function() end; local a = { 1, func, 2 }; print( "before", #a ); -- 3 for i = 1, #a do if a[ i ] == func then table.remove( a, i ); end end print( "after", #a ); -- 2 test here: https://www.Lua.org/cgi-bin/demo
  9. Problem resolved. Thank you so much. (incorrect net module throw the problem, maybe old version idk)
  10. I just run after compile ./linux-install-data.sh
  11. VM: Virtual Box Error name: Segmentation fault OS: Debian 9.9 (x64) RAM: 1.7GB CPU: 2 Version: MTA version r16569 (stable) (failed in another versions HEAD/etc) Additional: i had the same error using Docker with "ubuntu" image. Task: Just need to compile a custom MTA server. ================ Debian 9.9 (compile MTA SA r16569) gcc version: 6.3.0-18+deb9u1 Dump log: https://pastebin.com/itVUvLWQ Backtrace (using gdb mta-server64): https://pastebin.com/acSvH4BU Dump: https://upload.mtasa.com/u/974313768/server_1.5.6-custom_20190503_1231.dmp_ ================ Debian 8.11 (compile MTA SA r16569) gcc version: 4.9.2-10+deb8u2 Dump log: https://pastebin.com/DyPJxPC9 Backtrace: https://pastebin.com/utxwMnde Dump: https://upload.mtasa.com/u/287394891/server_1.5.6-custom_20190503_1611.dmp_ ================ Debian 9.9 (compile MTA SA HEAD) gcc 7.4.0.9 (updated) Dump log: https://pastebin.com/4CNAAW1V Backtrace: https://pastebin.com/LrResDcr Dump: https://upload.mtasa.com/u/218452296/server_1.5.6-custom_20190503_1814.dmp_ UPD: Stable version r16569 (from linux.multitheftauto.com) works well. This error affects only on self-compiled version. UPD2: starting mta-server64 with -n flag doesn't help.
  12. Link: http://www.lua.org/gems/sample.pdf I think it should be useful for everyone.
  13. You can also add this in top of the script, it should increase performance. local unpack = unpack; local len = table.getn; -- instead of #, you can't # make as local variable. Here is an updated version: https://github.com/Kenix157/mta_render_events
  14. Надо камеру за пределы СА переместить во время замены моделей. Тут можно увидеть пример: https://wiki.multitheftauto.com/wiki/EngineReplaceModel_notes
  15. Используйте interpolateBetween либо Lerp (ищите в интернете реализацию).
  16. Ну дак ты создаешь машину перед тем как проверить на наличия (аккаунта в acl.xml) в группе админа. Нужно проверять на наличие в группе ДО создания машины.
  17. setElementData привязан к элементу, очищать не нужно. Хотя если setElementData использовать на root, тогда нужно вручную удалять. (Сохраняется дата, даже если перезапустить ресурс)
  18. Портал Gamevs это игровые проекты: - RP BOX - MTA Oblivion Lost - GTA Race - и многие другие Нам требуются Lua скриптеры. Опыт работы в сфере MTA:SA будет большим плюсом. Зарплата выше средней по рынку, определится по результатам собеседования. В теме письма укажите "Работа". Мы также приглашаем к сотрудничеству различные проекты. В теме письма укажите "Сотрудничество". Ваши резюме отправляйте на почту (UPD: 08.01.19): [email protected] Желаем вам удачи на собеседовании!
  19. https://wiki.multitheftauto.com/index.php?title=RU/Server_Commands https://wiki.multitheftauto.com/wiki/Введение_в_скриптинг https://wiki.multitheftauto.com/index.php?title=RU/Server_Manual
×
×
  • Create New...