Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. xXMADEXx

    INT or LONG

    He means in SQL. I would just use INT.
  2. Is he hosting the server on his PC or is it a hosted server?
  3. when the player logins, trigger an event to set the login panel visible state to false.
  4. You have to add the object yourself, it creates the sound, not object. use: createObject attachElements
  5. put it in: \mods\deathmatch\resources\race\modes
  6. Well, I can't be entirely sure, but I think that parts is a table, so try this: setElementData(vehCol,"Parts_inVehicle",math.random(0,#parts))
  7. xXMADEXx

    MTA Fonts

    You can't add font to MTA, but you can script in some fonts with: dxCreateFont guiCreateFont
  8. xXMADEXx

    Hello

    Hello, and welcome to the MultiTheftAuto community! Here are some good servers: mtasa://mta.saur.co:22003 - SAUR:RPG mtasa://78.46.30.12:22003 - Towers Mania DD mtasa://176.57.141.120:22003 - FFS Mutli-gamemode
  9. I didn't know that it was possible either, but, well, okay....
  10. You cant use Cleo scripts in MTA, Cleo and Asi files are just for single player. Common Sense Actually, Cleo is for SAMP
  11. But look at the bottom of the Screen it said San Andreas Lol, it's GTA Online of GTA V. I thought you would've noticed the graphics lol. It says San Andreas because GTA V is based in San Andreas as well.
  12. xXMADEXx

    Functions.

    It looks like it's really just made out of dx functions and variables.
  13. The error means "needparts" is return nothing, but to simply fix it use tostring() local w = dxGetTextWidth(tostring(parts).."/"..tostring(needparts).." Tank Parts",1.02,"default-bold")
  14. The scripts are outdated, they need to be recompiled @ https://luac.multitheftauto.com. If you don't have the un-compiled version, you need to contact the developers.
  15. function antinj ( p ) local occupied = getVehicelController ( source ) if ( isElement ( occupied ) ) then cancelEvent() outputChatBox("Tā nav labi darīt!", p ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj )
  16. Contact the developer, we can't do anything with a compiled script.
  17. Hm, any errors in debugscript?
  18. Rather than doing fadeCamera, you can just make a black rectangle with dxDrawRectangle.
  19. Try this: local show = false local tick = getTickCount ( ) local endTick = nil addEventHandler("onClientRender", root, function ( ) if ( getTickCount ( ) - tick >= 300000 ) then show = true endTick = getTickCount ( ) + 30000 if ( getTickCount ( ) >= endTick ) then show = false tick = getTickCount ( ) end end if ( show ) then dxDrawImage((sWidth/2)-250, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage((sWidth/2)+90, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine((sWidth/2+120), sHeight-sHeight+65, (sWidth/2-120), sHeight-sHeight+65, tocolor(255, 255, 255, 255), 1, false) dxDrawText("Welcome To", (sWidth/2), 0, (sWidth/2), 31, tocolor(255, 255, 255, 255),1.00, "bankgothic", "center", "top", false, false, false) dxDrawText("Hubbub Games", (sWidth/2), 31, (sWidth/2), 62, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false) dxDrawText("New Forum Adress:", (sWidth/2), 72, (sWidth/2), 89, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) dxDrawText("www.HubbubGames.com", (sWidth/2), 89, (sWidth/2), 106, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) end end )
  20. function Camera() local x, y, z, _, _, _ = getCameraMatrix ( ) setCameraMatrix ( x, y+5, z, x, y, z ) end addEventHandler ( "onClientRender", root, Camera)
  21. You can try this: https://community.multitheftauto.com/ind ... ls&id=4600
  22. Try: dbHandler = dbConnect( "mysql", "dbname=******;host=localhost;port=3306", "*********", "**********", "share=1" )
  23. Chances are your dbConnect might be setup wrong.. This is what I use to connect my database: local dbData = { db = "db_name", host="localhost", port=3306, user="root", pass="" } db = dbConnect( "mysql", "dbname="..dbData.db..";host="..dbData.host..";port="..dbData.port, dbData.user, dbData.pass, "share=1;autoreconnect=1;" );
×
×
  • Create New...