Jump to content

denny199

Members
  • Posts

    877
  • Joined

  • Last visited

Everything posted by denny199

  1. And you was creating the button over and over in onClientRender..
  2. A:Stop asking me those stupid game choises, because I played those two games. Q:Do you like the new skype?
  3. A: mta, dooh Q: Zombie movie or action movie?
  4. you got one 'end' to much
  5. Hahaha, yeah thanks, I realised it some seconds ago, ;p
  6. GTX, he don't know a way to unload the scripts what he has loaded with "loadstring"
  7. Wuuuuut? You readed the first code, that you aren't using? And wtf, I quite didn't understand you 0,o
  8. Just remove the `_` because it isn't a needed argument: vehicle = {} vehicle[1] = createVehicle (411, 662.56219482422,1726.8951416016,6.9921875)
  9. Hi, I went over to a problem in my scripting code, is there a way to remove a letter from a element like: local D2290 = 8 Then remove the `D` from the element So it will return `2290` in a string instead of `D2290` Is this possible? If not, is there then a alternative way to bypass this? Because we can't use variables like this: local 2290 = 5 Edit: why do I need this? Because "D2290" is a invalid table ( returns nil ) My table for example: tableKUT = { [D2290]={"3-Seat couch 1" , 2290}, } Kindly regards, Danny
  10. This is from the XXS panel, we don't help people with leaked resources / scripts.
  11. A: Both togheter with friends <3 Q: Are you real?
  12. denny199

    md5

    If I understood you correct you want to connect your server accounts to your forums? If so, You can better use this: https://wiki.multitheftauto.com/wiki/Md5, It will directly Md5 the password, I think it will be the same, so it will be aloter safer to use this instead sending the whole pasword to the server. So you can compare these Md5 strings and then if it match it will connect? And why do you want to dehash it? Are the website's pasword's not dehashed?
  13. Allright, let's call him then hahahaha , since he only will get my host instead of my whole country , and with his little "adsl" network he never can down me.
  14. When I started scripting a 3D image for my first time I used this: https://community.multitheftauto.com/in ... ils&id=342 I edited the resource and then imported it.
  15. As {RoG}xXMADEXx wrote, with shaders: For example a light beam? Ren's flashlight shader: https://community.multitheftauto.com/index.php?p=resources&s=details&id=6858
  16. You should get a "VMware Player", you can install it on your pc and then create a virtual server and then play mta on that virtual server on a another resolution. You should google arround a bit for "VMware Player". It really helps out sometimes. Like when creating resolution, you startup your own mta, and then start the virtual server with VMware player, start the mta on that virtual computer, join your local server, and start the script and voila You are free to ask me more question's about converting the line's and text's for everyone's resolution. Edit: you can convert the usefull function "centerWindow" very easy: --The normal version function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end --converted a bit for dxDrawing. -- since there isn't a 'element' for dxDrawing you need to remove the function and se the 'x' and the 'y' local screenW,screenH=guiGetScreenSize() --it's stil the same. local windowW,windowH=500,500 --see down why. -- You need to put here your variables ( like the width and height ) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 -- this will center the rectangle preciese like the default function --and then you can use this: addEventHandler("onClientRender", root, function () dxDrawRectangle ( x, y, 500, 500, tocolor ( 0, 0, 0, 150 ) ) -- for example a rectangle. end) IDK for lines, because I never worked with lines drawing ( only 3d lines lawl ). You should play arround with it. Kindly regards, Danny
  17. You should contact the maker of that script.
  18. Found something usefull from 50p: https://forum.multitheftauto.com/viewtopic.php?f=91&t=41865&p=423999#p423999 And tips for Centering a dxDrawText: https://wiki.multitheftauto.com/wiki/DxGetFontHeight and https://wiki.multitheftauto.com/wiki/DxGetTextWidth ( with some easy calculations you can get it right ) Here's my old code which I used once for a 3d radio system it might be crappy but it's something: For example my dxDrawText in a rectangle combined with the centerWindow function,dxGetFontHeight and dxGetTextWidth: local screenW,screenH=guiGetScreenSize() local windowW,windowH=400, 60 local x,y = (screenW-windowW)/2, 60 local x2,y2 = (screenW-windowW)/1.5, 40 local x3,y3 = (screenW-windowW)/2.5, 40 function drawStuff() dxDrawRectangle (x2, y2, 400, 60, tocolor(0,0,0,150)) dxDrawText ("right",x2 - (dxGetTextWidth ( "right", 1.02, "pricedown" ) / 2) + 200 , y2 - (dxGetFontHeight(1.02, "pricedown") / 2 ) + 30, 400, 60, tocolor ( 255, 0, 0, 100 ), 1.02, "pricedown" ) dxDrawRectangle (x3, y3, 400, 60, tocolor(0,0,0,150)) dxDrawText ("left?",x3 - (dxGetTextWidth ( "left?", 1.02, "pricedown" ) / 2) + 200 , y3 - (dxGetFontHeight(1.02, "pricedown") / 2 ) + 30, 400, 60, tocolor ( 255, 0, 0, 100 ), 1.02, "pricedown" ) dxDrawRectangle (x, y, 400, 60, tocolor(0,0,0,250)) dxDrawText ("default",x - (dxGetTextWidth ( "default", 1.02, "pricedown" ) / 2) + 200 , y - (dxGetFontHeight(1.02, "pricedown") / 2 ) + 30, 400, 60, tocolor ( 255, 0, 0, 255 ), 1.02, "pricedown" ) end draw = false addCommandHandler ( "radio", function() if ( draw == false ) then addEventHandler("onClientRender", root, drawStuff) draw = true elseif ( draw == true ) then removeEventHandler("onClientRender", root, drawStuff) draw = false end end) --etc. And on the wiki is a very good example of guiGetScreenSize. For example, You have made a text/line in guiEditor and then you have outputted the propertys ( width,size,etc.) ( you are currently playing on 1920x1080xblah) Now you can use those to calculate it. Just like the wiki: Left position value is 684, 684/1920 = 0.356 Top position value is 731, 731/1080 = 0.676 Right position values is 732, 732/1920 = 0.381 Bottom position value is 766, 766/1080 = 0.709 And then local sWidth,sHeight = guiGetScreenSize() dxDrawText("I just copied the text from the wiki with some changes",sWidth*0.356, sHeight*0.676, sWidth*0.381, sHeight*0.709,tocolor(0,255,255,175),1.0,"bankgothic","left","top",false,false,false) ETC. Source: wiki ;p
  19. Hi there, I was searching in my old vice city thing for the lighthouse. But I only found the textures "od_lighthousein.txd" & "od_lighthouse.txd" So I only need the DFF and maybe the col? Can somebody say where this DFF and maybe the COL files are? Kindly regards, Danny
  20. denny199

    Solved

    Something like this: addEventHandler ( "onClientResourceStart", resourceRoot, function () local player = getLocalPlayer() triggerServerEvent ( "get:country", root ,player ) end) addEvent("onPlayerJoinTest", true ) addEventHandler("onPlayerJoinTest", getRootElement(), function(player, countryNames) AddingS("join", getPlayerName(player).."#FFFFFF joined #FF4000[#ffffff"..countryNames.."#FF4000]") end ) --server addEvent ( "get:country", true ) addEventHandler("get:country",root, function (player) local countryCode = exports["admin"]:getPlayerCountry(player) setElementData(player,"country",countryNames[countryCode], countryCode) triggerClientEvent ( "onPlayerJoinTest", getRootElement(), player, tostring ( countryNames [ countryCode ] ) ) end) BTW, elementData is synced with the client & server. edit: wheres the table "countryNames"?
  21. Aaaaaah, thanks man, hahahaha It worked
  22. Okay guys, let me explain it better: This is working properly: dbQuery(handler, "UPDATE playerData SET D2290=5 WHERE ACCOUNTNAME='denny19' " ) But this isn't working properly: dbExec ( handler, "UPDATE playerData SET `??`= `?` WHERE ACCOUNTNAME = `?` ", Ddata, value, ACCname ) It gives me the same error, and I didn't understood Crystal, because my english isn't so good.
  23. So I still need to use dbQuery instead of dbExec? And i found this: SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) [google] So I maybe need to pass direct my accountname? can you give me a example?
×
×
  • Create New...