Jump to content

Prever77

Members
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Prever77

  1. Hi. i've came here with specific question. is it possible to convert Blue in any way to run with GTA 3 as DLL like regular MTA:SA? they are pretty the same games i guess. i know for sure that there can be difference in game functions and blue server must be modified etc etc. but is it possible? i wanted to start modifying MTA Blue in purpose of running it with GTA 3. so i started to think that it would be easiest if i find Blue 1.0. But oldest i found on GitHub repo was in version 1.4.7. And here comes second question. Is it good way of making it by starting with older versions of Blue? Also i don't know where to start and how MTA really works. if i understand right. it takes GTASA executable and forces it to things by injecting functions. but is it right i don't really know. if someone can help me, i'll be so thankfull. i really like playing GTA 3. don't get me wrong. SA is nice. but in my hearth only 3 Exist. and i wanted to make MTASA functionality in GTA3. i know that there are projects in this direction. but i'm not interested in 0.5r2 etc etc. to get all functionality of MTA to gta3 servers. i know C language. but i'm asking someone who knows better. before i jump to code and disappoint my self after realizing that it's not possible. Sorry for my english. it's not my native language.
  2. I also wanted to make module to my server. But everything i found then was Example module code and MTA modules . On the internet there is not that much useful informations about coding modules in C++. Many example modules are soo old and outdated. For sure you need Lua liblary dll. And knowledge of MTA code that is here Mtasa-blue. I know that is not much. But it's better than nothing. I give up with coding modules. Maybe you have more luck keep going dude Edit1# down the rabbit whole Edit2# in pressent days. I don't see any sense of making modules. There is so much functionality in lua scripts provided by MTA. You can do many things faster by typing lua code, rather than making module from absolute zero. ofc this puts more load on the server. But it's a lot easier. Ofc this is only my personal opinion. If i'm wrong, then correct me someone.
  3. Prever77

    dxdrawtext

    Server Side Client Side ElementTree
  4. If you are using Linux you can use easely linux API. If Mac or Windows. The easiest way is to use WEB tool https://luac.mtasa.com/. It compiles lua code, idk how about model files.
  5. Ok. You can do it by three options. First is by defining cache in meta xml <file src="car.txd" chache="false" /> This will cause that models will be loaded only to dynamic memory (RAM) Nothing lands on hard drive. But every time client connects with server. He needs to download resource every time. If your hosting is so poor. And upload speeds are more like, communicating with voyager 1 . This will not pass the test. For example. Client 1 joined to server first time. He's speed connection is realy poor. He waited 20minutes to join the server. He loged out. And on the next day joined again. But this time he will wait 5minutes to download resource that he downloaded yesterday but not saved on HD. If server network speed condition will be same or worser than Clients 1. Then time will be doubled. Second way is to use fileDelete() This will do simmilar thing. But this can sometimes cause issues. To be honest, i used it once. And it makes things more complicated. Third way is to compile code. This can be useful in pair with xml cache. But only if you want to secure something very fragile on client side. Idk maybe you made hashing password system on client side. (Which is terrible idea) and you want to secure this script from being seen by third person.
  6. By "Vehicle mod" you mean. Vehicle txd files ? btw links doesn't work
  7. local con = dbConnect("mysql","dbname=<database name>;host=127.0.0.1","login","password","share=1") addEventHandler("onResourceStart",resourceRoot,check) local function check() if con then outputServerLog("[database] connected with server") dbQuery(con,'SET NAMES utf8;') else outputServerLog("[database] can't find connection point") end end function set(x) if x then dbExec(con,x) end end function get(y) if y then local rawtab = dbQuery(con,y) local tab = dbPoll(rawtab,200) return tab end end Now XML file <meta> <script src="sside.lua" /> <export function="set" type="server" /> <export function="get" type="server" /> </meta> I did not tested it. But it should work. But remember that you need to call functions get() and set() with exports like: function thatDoSomething() if something then exports['x-x']:get('your php code') --use this if your resource have a special characters or-- exports.xx.get() --this for resource without specialcharacters --ofc xx is name of your resource end end
  8. Hi. I have came here with small question. I've made login panel. And everything works fine with standard sha256 function. But i want add salt to passwords and i have no idea how to do it.maybe someone of you can help. Thanks function etcetc(pass,log) --pass is string if log and pass then local passwd = sha256(pass+"salt") dbQuery(myBasePass,"INSERT etc etc.."passwd" ") end --i realy don't know what i'm doing xDD, maybe --it's time for sleep Edit1 Nevermind. Contagenation in lua is made by two dots operand. Small thing. And can take whole day.
  9. Ok. I think that i understand now. So i can make new dimension by chosing id from range 2^16 and set weather,fog,colorfilter etc. of that dimension. Add elemenets etc etc. Thank you so much for help guys. I think this topic can be closed
  10. So, just by finding empty dimension or dimension with few elements. I can destroy them and place new ones if i understand it right? Standard world dimension 0 have clouds and skybox. Is it possible to set dimensions sky by any way ? Just wondering on that, cause i wanna to make new island. And gray sky like british weather isn't something that i really need.
  11. Hi. Is it possible to create new empty dimensions. If so. How i can do it. I cannot find anything usefull about this topic.
  12. Everything you need is isVehicleBlown and DestroyElement and maybe few lines of code that moves vehicle to some sort of garage. Idk maybe something like this if isVehicleBlown(vehicle) == true then DestroyElement(vehicle) dbExec(pass,"UPDATE garage SET statusIn=1 or true") else return end end I didn't tested it. But it would be something like this if your cars are stored in MySQL database. You can close it in Timer for example or event
  13. After few modification code works fine. Your PHP line helped a lot. Thanks I think topic can be closed
  14. Hi. I wanted to make timer on server side that will updating players money. Cause my money in the corner are based on custom dxText that download money status from getPlayerMoney. And here i have a problem. When i want to setPlayerMoney ,from database i still receive only playername. For sure i did something wrong. I checked PHP code in my SQL tab (XAMPP) and it worked as intended. Here is the code. Please Help. I'll be thankfull local dbc = dbConnect("") setTimer("onClientRender",function(nick) local pn = getPlayerName local dbq = dbQuery(dbc,"SELECT money FROM users WHERE nickname='pn'") setPlayerMoney(pn,dbq)1000,0) in dbc is defined utf8, same as my sql database Edit1 and variable coming from database should be INT
  15. Nie jestem pewien. Ale to raczej nie w blenderze. Zobacz może to. https://wiki.multitheftauto.com/wiki/CreateLight Edit#1 Na pewno widziałem taki efekt na neonach. Jakiś to serwer był ale jaki? To nie pamiętam
  16. Hi this is my first script made by me. I wan't make RP server and i made this script for that purpouse. Script have small problems. Like burning car for very short period of time after hitting elements. And vehicles aren't always protected from exploding. Like hitting gas station by car. Or picking down to the ground by plane. Edit 1# Script is only server side https://community.multitheftauto.com/index.php?p=resources&s=details&id=18831 I'm opened for sugestions and opinions. Have a nice day
  17. Thank you so much for the tutorials and priceless advice Have i nice day
  18. Hi dear community I've came here with an ask. Is it hard to learn lua, and is it worth of learning from code made few years ago ,Like 5 or 4 years ago? I know a little C++ and heard that LUA is very simmilar to Objective C++. But i never had enough time and will to learn objective C and understand it. So if someone know good lecture about Objective Cpp, can send me a few titles or links about O C++ ? As i have heard about simmilarities only. It is hard to me to guess is it worth of learning Objective C++ first. Or MTA LUA. (Naturally i think that learning both of these would be investment in myself) if i learn OC++ first. Learning MTA lua would be easier for me. Or reverse ? I'm so sorry for my language. English isn't my native language. And for every Answer i'll be thankful. Have a nice day.
×
×
  • Create New...