Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About NewbProgramming

  • Rank


  • Gang
    Chinese Mafia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Everytime you login? Mmm maybe should have an option to disable it if you wanted.
  2. Running on my test server just for testing purposes. https://forum.mtasa.com/viewtopic.php?f=115&t=96929 Thank you, it's nice.
  3. You are replacing the function. Change: function setGameType(playerSource,commandName,setversus) addCommandHandler("setvs",setGameType) to: function cmd_setGameType(playerSource,commandName,setversus) addCommandHandler("setvs",cmd_setGameType) so it doesn't replace the setGameType MTA function.
  4. local index = 0; local line_spacing = 10.0; for i, message in pairs(messages) do dxDrawText(message, 940, (minHeight + (index * line_spacing)), 1230, ((minHeight + (index * line_spacing)) +(msgHeight*15)), tocolor(255, 255, 255, 255), 0.60, "bankgothic", "left", "top", true, true, false, false, false) index = index + 1; end If messages is a table with indexes auto assigned you can: local line_spacing = 10.0; for i, message in ipairs(messages) do dxDrawText(message, 940, (minHeight + ((i - 1) * line_spacing)), 1230, (minHeight + ((i - 1) * line_spacing) +(m
  5. Bro. The other thread you made we told you: exports["house-interiors"].getInteriorsList() Is NOT returning a table. and tosfera is right, to call another resource's function you need the colon not period, like so: exports["house-interiors"]:getInteriorsList() Check to make sure getInteriorsList is being exported in the meta.xml of the house-interiors resource. Do not create another thread for the same problem please.
  6. You're not describing specifically what you want so how could we help you? Be more specific on what you want.
  7. Can also make a system like Amazon's. Where you can upload your own mp3 files to the server and play them via. music player.
  8. I am going to sleep, if you still need help when I wake up I'll be happy to quickly script what you want. Private Message me.
  9. I didn't see your code on the previous post until just now. You DO NOT have to create a loop (it's inefficient), you can do this: function getChatInput (button, pressed) if pressed then if keys[button] ~= nil then if (button == "enter") then setChatVisible(false) outputChatMessage(input) input = "" elseif (button == "escape") then setChatVisible(false) input = "" elseif (button == "backspace") then input = string.sub(input, 1, #input-1)
  10. Damn man, it works for me no errors, let me scrap my system and send it to you.
  11. Try: toggleControl("chatbox", false)
  12. From my knowledge you can't unbind any MTA controls, the player can but not the server nor the client scripts. You have to toggleControl("chatbox", false). https://wiki.multitheftauto.com/wiki/Control_names showChat(false) should have automatically disabled the control though.
  13. Try: TEMPORARY_VEHICLE = {}; function cmd_veh(plr, cmd, ...) local vehicleName = table.concat({...}, " ") local vehicleID = getVehicleModelFromName(vehicleName) local x, y, z = getElementPosition(plr) if isPedInVehicle(plr) then outputChatBox ("#C80000✖ #E7D9B0Get out of the vehicle first.", plr, 255, 255, 255, true) return end if vehicleID then if TEMPORARY_VEHICLE[plr] ~= false then destroyElement(TEMPORARY_VEHICLE[plr]); end TEMPORARY_VEHICLE[plr] = createVehicle (vehicleID,
  14. Did you destroyElement(player_vehicle[plr])? Have to completely remove the newVehicle variable and replace it with the table variable.
  • Create New...