• Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by CrosRoad95

  1. Hello, i have this code: local env = {outputChatBox=outputChatBox} function run(untrusted_code) if untrusted_code:byte(1) == 27 then return nil, "binary bytecode prohibited" end local untrusted_function, message = loadstring(untrusted_code) if not untrusted_function then return nil, message end setfenv(untrusted_function, env) return pcall(untrusted_function) end and i want to stop execution like stopResource i want too limit execution function to example 10 per second, how can i do this?
  2. adding the possibility of setting physical elements that would be great i can use this example for: on vehicle hit fence, fence set phisic=true for 2 second and fly 20 meters forward.
  3. Add colors into server console, black and white is ugly.
  4. add option to make text like Bold Italic Underline Strikethrough and combo like something something2 something3 in gui text,gridlist, dxdraw, chatbox etc example outputChatBox("[b]bold[/b][i]italic[/i]")
  5. Cool will be when in mta i can load and cell .dll or .so file, for example: i have file .dll, in my file is function "helloworld" and i can make code example: lib=loadLibrary("") -- 'so' on linux, 'dll' on windows libraryCell(lib,"helloworld") and function libraryCell return string "hello world" in my opinion this is easier to implement than modules only server-side
  6. how detect who make this, on my server play around 150 players [2016-11-19 22:36:30] [Network] OutCommandQueue > 400000 msgs. This is due to server overload or script freeze and error mta-server[12061]: segfault at a ip 00000000f6a037d5 sp 00000000f51fba40 error 4 in[f63c5000+937000]
  7. please update lua 5.1 to 5.4, lua and add serverside option to enable package, io and os library ( i know that require can download virus ) and add to config option <loadstring_client>enable||disable</loadstring_client> && <loadstring_server>enable||disable</loadstring_server> ( when loadstring is used on client, player is kicked by anti cheat and loadstring not running, when used on server, only block, both should output information to log (ip,code,file,line))
  8. example button=guiCreateButton(...) button:on("click",function() outputChatBox("lel") end) button=guiCreateButton(...) button:on("change",function() outputChatBox("lel") end)
  9. for example <filefolder src="folder/blips/.*" /> -- select folder and include all files using regex .* and can be attribute subfolders="true" then include all folder like script/folder/blips/subfolder it will be awasome, now i must look that yes, i can create php script, module, use bash etc to get all files in folder
  10. It's possible to add new operators like ! ? @ $ & | ` which can be edited by setmetatable?
  11. enable option to popup notification like this
  12. example: returnFromLoadString,Something=loadstring("a=1;b=2;c=function()end")() iprint(a,b,c) -- print: 1,2,functionHandler unloadstring(Something) iprint(a,b,c) -- print: nil,nil,nil Or add client-side startResource && stopResource ( example for disable admin feature for the selected player ) and event serverSide event like "onClientStopResource" & "onClientStartResource"
  13. give me example code, use only 1 object
  14. setObjectAnimated(Element object,bool) -- turn off or turn on object animations ( eg. chicken on north san andreas ), freeze on current frame setObjectFrame(Element object,int frame) -- set object frame setObjectAnimatedSpeed(Element object, float speed) -- set object animation speed setObjectAnimatedEasing(Element object, string easting type) -- set easing from this i can make building, when i enter, building start demolish ( eg in battlefield 4 etc. )
  15. be awesome if have been added function like modifyOutputChatBox(string tag,string newContent) e.g: outputChatBox("Something [myTag]in tag[/myTag] Something") // on chat looks like: Something in tag Something modifyOutputChatBox("myTag","new content") // on chat looks like: Something new content Something and exited message will be updated. for client and server will be awasome
  16. hi how create from source files on linux ( debian 8 ) ? i tried using 'make' command but dont work ml_base from this link
  17. CrosRoad95


    Hi It proposes to add modules that can be files .lua or add function to set global function without using meta exports
  18. PL Mój pomysł jest taki aby w configu mta była opcja dodania seriali których nie będzie można wyżucić z servera (kick) i seriali których nie można zbanować ( ban ) ENG My idea is to mta config option was added serials which can not be wyżucić the server (kick ) and series you can not ban ( ban)
  19. Witam jaka funkcja lub jak pobrać który od góry item na grid liscie zaznaczyłem ? mam np. takie cos: TEST1 TEST2 TEST3 TEST4 i po kliknieciu TEST3 odsyla mi 3, a po kliknieciu TEST2 odsyla 2 jak to zrobić ?
  20. could you sell me source code of this script ?
  21. how can i get list of all gangs ?
  22. Witam Chcialbym zaprosić wszystkich graczy mta sa na moj server zombi o nazwie: .: Polski Server Zombi :. Znajdują sie na nim: - Zombi ( to chyba oczywiste ) - PKT za zabicie zombi ( 1 pkt / 1 zombi ) - Sklep ( zeby w nim kupic trzeba miec odpowiednio duzo pkt ( pkt = exp ) - System lvl ( aktualnie jest 50lvl / poziomow ktore mozna zdobywac, 50lvl za 10tys exp ) - Areny ( narazie 8 a bedzie 36 ) - Zestaw komend typu: /hpmax /max itp ( wiecej info w panelu F2 ) I wiele wiecej! Zobacz moj server i go ocen