Jump to content

NewbProgramming

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by NewbProgramming

  1. exports["house-interiors"].getInteriorsList() Is not returning a proper table.
  2. If that does something it looks to me it will always face the weapon to the right of the player. Change getElementRotation(source) to getElementRotation(weapon) ... see what that does.
  3. 256, yeah you can do that as well as a work around, but that will create two searches for the variable you need. (one in the global search and another in the table search) It's just best to do as I previously stated, if you care about performance at all. If you have the best computer imaginable 4+ core 4.0+ ghz you don't need to worry about it much.
  4. http://www.lua.org/about.html The more you know. Also, you should be using "global" scope variables more than "local" scope variables, there is a limit to how many "local" variables you can define per scope, this is because Lua searches in the local scope for variables first and then the global scope for variables when you use one in a statement. Only use "local" for quick access variables and to hide variables from other scopes. The performance for doing so will speak for itself.
  5. Use a light instead, you can achieve the same goal: https://wiki.multitheftauto.com/wiki/CreateLight
  6. Sprites: http://wiki.sa-mp.com/wiki/TextDraw_Sprites http://forum.sa-mp.com/showthread.php?t=291722 You can already do the sprites by downloading them to the client from the server and calling dxDrawImage function, but... The sprites would be a good idea because they are already installed with the Grand Theft Auto: San Andreas installation, so if you want to use them, we should be able to without downloading, to save bandwidth and HDD/SSD space on the client's computer and the server. I may be asking for too much from the MTA team so if you could, I would rather my other suggestion be implemented before this one. (link) On the above note, I really love this mod, I hope you guys continue perfecting it. Awesome community .
  7. Damn! I have always wanted to do that! Such a great idea... it'll allow you to play the missions with your friends... sick! Procrastination is the only problem I have
  8. That's indeed a great Idea but simply rewriting the code may not help. Don't forgot gta sa is a single player game where as mta is a multiplayer. You have to check the code constantly and carefully trigger between client and server events. Good luck! That's the plan, I'm changing the gameplay, slightly.
  9. THIS_RESOURCE = getThisResource(); ROOT_ELEMENT = getRootElement(); GUI = { -- BUTTONS button = false }; OnResourceStart = function(resource) if resource == THIS_RESOURCE then GUI.button = guiCreateButton(0.40, 0.75, 0.20, 0.10, "CLICK ME", true, nil); -- x_position, y_position, width, height, text, relative, parent guiSetVisible(GUI.button, false); end return; end OnResourceStop = function(resource) if resource == THIS_RESOURCE then if GUI.button ~= false then destroyElement(GUI.button); end end return; end OnVehicleEnter = function(player, seat, jacked) -- source = vehicle_element if GUI.button ~= false then guiSetVisible(GUI.button, true); end return; end OnVehicleExit = function(player, seat, jacked) -- source = vehicle_element if GUI.button ~= false then guiSetVisible(GUI.button, false); end return; end OnGUIClick = function(button, state, x, y) -- source = gui if state == "up" then if source == GUI.button and guiGetVisible(GUI.button) == true then outputChatBox("You've clicked me!"); end end return; end addEventHandler("onClientResourceStart", ROOT_ELEMENT, OnResourceStart ); addEventHandler("onClientResourceStop", ROOT_ELEMENT, OnResourceStop ); addEventHandler("onClientVehicleEnter", ROOT_ELEMENT, OnVehicleEnter ); addEventHandler("onClientVehicleExit", ROOT_ELEMENT, OnVehicleExit ); addEventHandler("onClientGUIClick", ROOT_ELEMENT, OnGUIClick );
  10. I am in the process of recreating GTA SA single player missions inside of MultiTheftAuto. It is a lot of work, I've un-compiled main.scm with Sanny Builder and I'm pretty much re-scripting the instructions for Lua. If you will be patient I should be done by Summer. I am currently at: I basically just follow the instructions. So I go to the line with SMOKE3 (line: 121935) and I translate what the instructions is telling the game to do but for Lua: player.data[element].mission_attempts = player.data[element].mission_attempts + 1; player.data[element].on_mission = true; world.data.weather = 1; ... and so on.
  11. Alright at least you feel it's worth thinking about Thank you! I like this mod it's amazing.
  12. https://wiki.multitheftauto.com/wiki/Cl ... _functions
  13. Such as that of PHP $_FILE: http://php.net/manual/en/reserved.variables.files.php Handle files with a variable. Like you have for "cookies", "form", and "querystring" http://stackoverflow.com/questions/8659 ... pload-work Good for: - Player profile picture uploads. - Screenshot submission. - Mod submission. - Script editing via. browser. - FTP. - Much more.
  14. This is very nice. I have a question. Do you think the same is possible with World of Warcraft models?
  15. Main.server.lua in 'NP_Gamemode' resource: acl.xml: What do I need to do to give access to these functions?
×
×
  • Create New...