Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 27/11/20 in all areas

  1. DOWNLOAD: https://community.multitheftauto.com/?p=resources&s=details&id=18330 Speaker system, it lets players create their own boxes to stream music (internet radio, and sound links like .mp3), and other players will hear it. - Sizable list of preset internet radio stations (see pic) - Players can also use custom URL, to play their own music - Speakers will be placed near player, or if they are inside a vehicle, it will be attached to their vehicle - Song title, if present, will be displayed above the speaker - Players (with "Turn other box" button) can decide if they want to hear everyone's speakers, or only their own speakers. This is useful for not having to listen to other people's music taste, a lot of music mixing with eachother, limited bandwidth, and for security aware users. This option will be saved in client settings file. - Admins can see the name of player who placed an individual speaker (hold left alt) and delete a speaker with /delbox [ID]. The ID is displayed next to speaker owner name. Hope someone finds it useful!
    3 points
  2. Hey DiGiTal Summary: Y axis: Y axis position & compute pixel density(scale) X axis: X axis position drawText("$123456789", 140*sx, 648*sy, 0*sx, 0*sy, tocolor(0,0,0,255), 0.8*sy,"bankgothic") drawText("$123456789", <start position>, <start position>, <end position>, <end position>, tocolor(0,0,0,255), <scale>,"bankgothic") Take a look at your code. There are 3 types of arguments. start position (boundingbox) x y end position (boundingbox) x y scale (text) And an `invisible` one, which is the boundingbox size: boundingbox width = (end position x) - (start position x) boundingbox height = (end position y) - (start position y) You are currently not using the boundingbox. But that is something you could scale as well. When scaling and positioning, there is 1 important thing to keep in mind and that is to look at both of them differently. Because for some cases you want to scale position over the X and Y axis at the same time. X axis is used for the raw position. Y axis is used for the offset. local scaleValueY = sy_/900 local startPositionX = x_ -- right side of the screen local offsetX = scaleValueY * 30 -- calculate an scaled offset value local positionX = startPositionX - offsetX Your code drawText("$123456789", 140*sx, 648*sy, 0*sx, 0*sy, tocolor(0,0,0,255), 0.8*sy,"bankgothic") = drawText("$123456789", <10.2%>, <72%>, <0%>, <0%>, tocolor(0,0,0,255), <80% * 100%>,"bankgothic") I assume this is text placed above the radar. Now how to figure out the difference in methods? The only way is actually to see it for yourself. I made the following changes to reproduce your situation: Argument 2: Scaling the left offset over the Y axis. Argument 3: Starting from bottom to top, to improves `value` readability. (but doesn't change the outcome) Changed the text color to red. local scaleValueY = sy_/900 drawText("$123456789", scaleValueY * 140, sy_ - (scaleValueY * 252), 0, 0, tocolor(255,0,0,255), 0.8 * scaleValueY,"bankgothic") Your development resolution is: 1440 x 900 Check if both of them are aligned properly. If yes, then: Run both of examples at the same time with different resolutions and ratio aspects. Check the X position of both methods and see how those behave. Make some screenshots, which we can discus here.
    2 points
  3. Hola,after years of experience on the world of scripting , i've the chance to create this script. Being tired to get your models(dff,txd,col) stolen after weeks or months that takes to the modlers to create them??? Using ASCII characters which length is 128 {accepts the special caracters like @#./`\[| } and the key used to secure your models length is 16 which is stored on server side , the players of the server cannot get that key because they are clients and clients cannot get serverside files . With probabilities we get 128^16 = 5,192,296,858,534,827,628,530,496,329,220,096 . This big number is how much of tries must be a hacker to get the right key , don't forget that it's very easy to change the key if you have doubt something. [+] The script compiles the wanted files and load them on player Joins the server with the compiled version . [+] I can add IFP files if needed , to compile animations. Let's test it HOW MUCH time takes to crack this password Event with using the POWERFULL computer of 2020 : u.]W%\I2;$l=1~,3 gives infinity ASCII caracters are: Images: CONTACT: ov!Ridden#2028 Please don't reply on this topic to speak about the price because you will be ignored, just contact me on discord and if you don't have discord PM me I'll not say that your models are 100% safe and impossible to hack them but this script will make your models very very very very hard to hack it.
    1 point
  4. What I would do is use OnColShapeHit and use GetElementModel to check the ID of the vehicle that hits the sphere. If the ID is the same as your train's have it output to the chatbox. (you can check vehicle ID's from here if you need.)
    1 point
  5. I might be mistaken, but if you're looking to attach a colsphere to the vehicle itself you should be able to use attachElements
    1 point
  6. Treaba sta in felul asta, voice e o resursa care trebuie sa fie instalata in serverul pe care te joci tu, mai mult ea trebuie sa fie deblocata in mtaserver.conf daca nu ai server, orice modificare faci acolo nu este luata in considerare. Tot ce poti face tu ca jucator este sa ceri proprietarului serverului pe care joci sa puna voice. Tu ca jucator nu "trebuie" sa te interesezi decat la ce poti face in joc. Succes!
    1 point
  7. This is a trick which i do not recommend. Due of thing mentioned above. Personally i'm using a IIYAMA's way for everything, and it works perfectly.
    1 point
  8. We have determined that you're 1 of those people in the Turkish DD scene looking to toxify it, through inventing (looking for) exploits and methods to gain unfair advantage and then, like usually happens, spreading it amongst the scene. This kind of behavior tends to include constantly trying to bypass EXEMOD patcher, working on lagswitches, other tools to gain an unfair/cheating advantage and such.. This group, known as the "core abusers" in Turkish DD scene, has began getting banned, and it brings a benefit to fair play for MTA. Ban appeal denied, unban isn't possible. It's just that we dont want you on MTA. In cases like this, past bans are considered together with information we have on your current activities (which we won't share, to prevent people from learning of their mistakes).
    1 point
×
×
  • Create New...