Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    40

Everything posted by myonlake

  1. myonlake

    Accounts

    MTA San Andreas 1.3/server/mods/deathmatch/internal.db
  2. Not to be rude guys but I doubt (advanced) sex is going to be in his plans for a long time. I am more looking forward to the build and buy section and basic features.
  3. myonlake

    Hello!

    I begun scripting in Lua a few years ago and the thing I did was pretty much testing community resources and making changes or adding additional features to them. I read the Wiki a lot and tried out all the fancy functions and events and pretty much experimenting gave me a better picture of the language and right now I must say everything is possible and there's nothing that could stop me from doing something. For your question, when you do the function getAccounts() it gives you a table. Now most likely if you know anything about PHP, you could while/for-loop the table and then display all elements in the table on the website with the callRemote() function. This is what I think could work. Of course MySQL is an option but if you want to make it some way else then I guess this is one of the options you can use alternatively. It's nice to hear that you look for other options as well instead of going with the mainstream options that all servers use (usually the mainstream stuff are efficient and powerful than any other options - but trying out is never for bad). Also about your GUI problems. I had the same issue when I looked up the GUI functions and events. I literally knew nothing how they worked and I had problems making anything work. I found a boat rent script on the community site and I used it as a base ground for learning. I changed the label and button texts, which was a big thing for me even though it's a very small thing. Then I started understanding that you can actually resize the window size and do stuff with it. Then I found ways to create nice and working GUI windows and use them with the server-side script. After all the manual setting I found the GUI Editor and that's the only thing I am using nowadays to create GUI stuff. Sometimes I create them manually if it's a simple thing (all DX drawings I do manually always) but the GUI Editor is great when making complex and big stuff - especially when you want everything to look precise and fancy. You could try the GUI Editor as well. Remember, you have to make the actual GUI functionality yourself client-side. There are small example snippets in the Wiki, use them and use the community resources as well (try to grab a small resource at first). https://community.multitheftauto.com/in ... ils&id=141 P.s. There are a lot of community made tutorials here on the forums. Use them as well - most of them are very useful!
  4. That seems very nice! Great job.
  5. Already suggested. viewtopic.php?f=102&t=58412
  6. If you can take screenshots of the resources why not the gamemode itself. Smells like a broken gamemode to me. Or then it's an empty gamemode and you're just in need of quick cash with your scam. This money will probably be activated in Steam or so. That's what I would do.
  7. With that attitude I expect this to be a scam or at least a very poor gamemode.
  8. Basic Roleplay is not a single resource. It's split into multiple resources and you should check the folder itself for the resources. It also requires a MySQL server, just so you know.
  9. None. Unless you want to use mine, Basic Roleplay gamemode, which you can find from the resources section.
  10. 4.0.24 was leaked by their former main developer called "Mabako", which was also a key developer in Multi Theft Auto. It was not sharing or giving away, it was leaking. A developer is meant to be loyal but apparently Mabako was not that loyal and ended up leaking the whole system.
  11. Use the bindKey function.
  12. There are mistakes in the code and unless you can see them you shouldn't be helping around if you're not sure what he wanted. As far as I can tell, csmit's code should work, ignore the other snippets since they don't even have a function name defined and could be a lot simpler.
  13. How can Custom cars get all the 3 paintjobs? D: And no, with shaders no, shaders will just replace car default body. When it comes down to paintjobs on custom modifications, it gets a little more complicated than you think it would, however in my opinion it could be done - yet I am no expert in that expertise so I can't really say for sure, maybe I'll leave that to the developers. However, you can make custom paintjobs and with shaders put them on the vehicle like I do.
  14. /me command is an internal command of MTA
  15. All of those can be done with the current MTA functions, unfortunately. engineLoadIFP is not available due to it having critical bugs and therefore is still an on-going project over Mantis.
  16. I had the same issue myself but the 1.3.3 version fixed it. Go to your game settings and toggle in the HUD correction in the video settings. This corrected everything.
  17. Hey! Alright so basically you are missing the function itself and the command handler, which is used to trigger functions. Try this code. Server-side addCommandHandler("health", -- Create a command "health" function(thePlayer, cmd) -- Do the function when they type the command, "thePlayer" = the player who used the command, "cmd" = a string, returning the command name local money = getPlayerMoney(thePlayer) -- Get the player's money if (money >= 150) then -- If the player has exactly or more 150 coins, proceed takePlayerMoney(thePlayer, 150) -- Take 150 coins from the player setElementHealth(thePlayer, 100) -- Set their health to 100 else -- Their money is less than 150 coins outputChatBox("You need 150 coins.", thePlayer) -- Output a message to the player end end, false, false ) Additionally this is the wrong board to post your problems in You should post here in the future.
  18. GTA:SA was not designed for full customization tbh. That's why it's causing that trouble.
  19. Also don't be afraid to try out new things. If it doesn't work at first, then try again later, it's not a thing to leave behind and never touch it again. Honestly I have gained so much experience by just trying things and doing large gamemodes just for myself all over again from a scratch from a clean table. But the way I learnt scripting was pretty much looking at the Wiki and Lua tutorials and then doing stuff with the community scripts there are. I also asked for help here on forums for things that I can fix nowadays without asking any help, lol. Then I kind of learnt a lot of basics and fun stuff that you can do with MTA. It's not that hard after all when you know what you're doing
  20. You need to define the water element to the setWaterLevel. Try this. --server side -- Setting water properties. height = 0 SizeVal = 2998 -- Defining variables. southWest_X = -SizeVal southWest_Y = -SizeVal southEast_X = SizeVal southEast_Y = -SizeVal northWest_X = -SizeVal northWest_Y = SizeVal northEast_X = SizeVal northEast_Y = SizeVal -- OnClientResourceStart function that creates the water. function thaResourceStarting( ) setWaterLevel ( -500, false, false ) water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) setWaterLevel ( water, height ) end addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting) local maxLevel = 35 -- max level local untilW = 120 -- sec local raising,level = (maxLevel/untilW)/10,0 untilW = nil local runningTimer function editSomeWater() level = level + raising -- level raising setWaterLevel ( water, level ) -- set the level if level >= maxLevel then -- compare values of level and max level setWaterLevel ( water, maxLevel ) -- set it back to max level for perfection if isTimer(runningTimer) then -- check if the timer exist killTimer(runningTimer) -- stop the timer end runningTimer,level,maxLevel = nil,nil,nil -- delete data (ram) end end setTimer (function () -- set a timer for 15000 millisec (15 sec), runs one time "1" runningTimer = setTimer ( editSomeWater, 100, 0 ) -- set an invinity timer to set the water level, (0 = invinity) (only stops when you stop him with killTimer) end,30000,1) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true )
  21. To be honest all the popular servers are already on the top. If someone with 20-50 players wants to be in the top they'd be crazy in my opinion.
  22. Look at the examples in the Wiki and try them out. It's rather simple after all. I didn't know crap about it myself either back some years ago and now it goes like liquid. Go and try and let us know if something's not right. Don't be afraid of trying out new stuff - otherwise you will always stay at that level of experience
  23. The "else return" part is unnecessary since that side of the code is never being executed and would automatically return end if source wasn't true.
  24. myonlake

    question

    Yes, should work as far as I know. Try and let us know.
×
×
  • Create New...