-
Posts
240 -
Joined
-
Last visited
Everything posted by Puma
-
You can't. You need to use the "onClientRender"-event. In the function, you create a rendertarget using dxCreateRenderTarget and set that as rendertarget using dxSetRenderTarget. A rendertarget is basically a drawingplane. Instead of drawing on your screen, you draw in a rendertarget and you draw that rendertarget somewhere on your screen, like writing a note and putting it on the table. Then you use dxDrawText (since you set the created rendertarget as rendertarget, it draws on that rendertarget) to draw your text on the target. After dxDrawText, you reset the rendertarget using dxSetRenderTarget() and draw the rendertarget on the screen using dxDrawImage. Give the image a rotation and you got your rotated text. If you need an example script, just ask for it.
-
If something is stolen, the author didn't give permission, so you will not get any support of anyone on this forum.
-
Just add a triggerEvent when you setPlayerWantedLevel.... And use that event .
-
Updating the playercount in a MySQL table which you acces both from the server you're playing on and the server you want to know the playercount of, but that's quite an over-the-top measure. Most efficient way is using callRemote, I think.
-
Not that I don't appreciate it, but could you give a proper definition of it's functionality, instead an examples ? Check strings for patterns?
-
Open meta.xml in race and remove the line Couldn't be much easier. Try looking for it yourself next time, this wasn't hard to find at all.
-
Well, speaking about obvious names... MTA is online, is multiplayer and is a game.
-
Right, didn't notice it. Thanks
-
This has probably been requested earlier, but I was wondering. There's this cheat in San Andreas ( B S X S G G C ) which makes vehicles have no gravity and float away like dust after you touch them with the vehicle you're in. Even the smallest touch of your car takes the gravity away on the vehicle you touched. Can't this trigger somehow be used to trigger an 'onVehiclesCollide' event?
-
Your version didn't work either.
-
My script gets the text from a .txt file (using fileOpen, fileRead). The text: http://pastebin.com/Q1Z33af6 I put some colorcodes in it and since the colorcoded-bool in dxDrawText only works from 1.3.1 on (and as far as I know, 1.3.1 isn't released yet), I used Aibo's dxDrawColorText-function https://wiki.multitheftauto.com/wiki/DxDrawColorText Ingame, it looks like this: Without using dxDrawColorText, just dxDrawText, it looks like this (and this is how it should look): Anyone who got an explanation and/or solution for this problem?
-
Is there any way to know when the refreshment of the resources (triggered by usage of the /refresh-command) is done?
-
Sure! That is the purpose of it .
-
If I remember correctly, replacing animations was removed, since it was unstable.
-
You need to alter line 118, change 'windowRelativeY'. The two numbers (0.5, 0.5) define the relative position of the window on the screen, the second one is the Y.
-
Small update. Added infowindow, re-uploaded it and also updated the wiki-page. On the screenshot you can see the info-window and how it looks when you change the colors. You can set the colors for info- and errorwindow each.
-
Something small. I always put the custom errorwindows in my scripts, but it's far easier to have a general resource that provides a function and I thought that there could be people out there who could make good use of it, so here it is. You can set the colors for both error- and infowindow of the top-text, general text, top-background and text-background in its settings (rgb and alpha for backgrounds) and the window's size depends on the text that's put into it. There's an option to disable the window with a click anywhere on the screen or let it disappear after a set time-interval. Plenty of options, so it suits everything. Example: Wiki-page: https://wiki.multitheftauto.com/wiki/Error/info-window Download: https://community.multitheftauto.com/ind ... ls&id=4923 Hope it'll be useful. Edit: Updated it, added info-window.
-
Sure! Go to the elements list, this icon: Doubleclick on your 'boost' element and change the data in the window that appears .
-
Does your server start and can you join it? If so, try to login onto your acount using /login username password. If you can't join, check the server-console (the black screen with white letters that appears when you doubleclick server.exe) to see if there's any information there about why it doesn't start.