-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
just use playSound function whenever you need it..
-
Indeed Callum, but it would be the same, just less code lines.
-
Look, this is really easy to script, you'll need to take off these edit boxes from the image, then put that as a background, draw your edit boxes with guiCreateEdit, then the button can be done by an image + label, or just image with the text already in it, it's pretty easy. Take a look at the GUI scripting introduction. https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
-
karlis, I had the problem in one of my scripts with outputChatBox("Hello world",root,r,g,b), it wasn't working since root wasn't defined, so I think it's not defined or it won't work for this function.
-
You are creating a new infinite timer on every render.... I think your code should look like this: local screenWidth,screenHeight = guiGetScreenSize() local imgDims = guiGetScreenSize() local frame = {} frame[1] = "images/noise_1.png" frame[2] = "images/noise_2.png" frame[3] = "images/noise_3.png" frame[4] = "images/noise_4.png" frame[5] = "images/noise_5.png" frame[6] = "images/noise_6.png" frame[7] = "images/noise_7.png" frame[8] = "images/noise_8.png" frame[9] = "images/noise_9.png" frame[10] = "images/noise_10.png" frame[11] = "images/noise_11.png" frame[12] = "images/noise_12.png" frame[13] = "images/noise_13.png" frame[14] = "images/noise_14.png" frame[15] = "images/noise_15.png" frame[16] = "images/noise_16.png" frame[17] = "images/noise_17.png" frame[18] = "images/noise_18.png" frame[19] = "images/noise_19.png" frame[20] = "images/noise_20.png" frame[20] = "images/noise_21.png" frame[20] = "images/noise_22.png" frame[20] = "images/noise_23.png" frame[20] = "images/noise_24.png" frame[20] = "images/noise_25.png" frame[20] = "images/noise_26.png" frame[20] = "images/noise_27.png" frame[20] = "images/noise_28.png" frame[20] = "images/noise_29.png" frame[20] = "images/noise_30.png" setTimer(function() randFrame=math.random(#frame) end,5000,0) function randomframe() dxDrawImage(0, 0, screenWidth, screenHeight, frame[randFrame], 0, 200, 200, tocolor (200, 200, 200, 5)) end addEventHandler("onClientRender",rootElement, randomframe)
-
Gta-multi.com, Quality MTA San Andreas Hosting.
Castillo replied to Gta-multi's topic in Hosting solutions
Peacemaker, you should get banned from this forum, your post(s) are only insulting others. -
Peacemaker, firstly, I hardly play at my own server, I'm used to play on different servers, it's not my kind of game type, also, if you don't like the server, just play another... your post is stupid, you're just trying to piss of someone, grow up kid.
-
Try with this ( client side ): addEventHandler("onClientPlayerRadioSwitch", getLocalPlayer(), function () cancelEvent() end)
-
Qais, I think your post is just a post count one, it was already obiously .
-
There are many private message system's in the MTA community, also there are speedometer's.
-
I fixed the bug here: marker1 = marker1 = createMarker(-2319.1865234375, -1837.935546875, 499.82629394531 , "cylinder" , 1, 0, 0, 204, 200) You did marker1 = marker1 = createMarker().
-
It's wrong. marker1 = createMarker(-2319.1865234375, -1837.935546875, 499.82629394531 , "cylinder" , 1, 0, 0, 204, 200) function markers(thePlayer) if source == marker1 then local x,y,z = getElementPosition(thePlayer) createObject(1655,x+20,y,z) outputChatBox('#FF0000Object Created !',255, 255, 0, true ) end end addEventHandler("onClientMarkerHit",getRootElement(),markers)
-
So, you are using Freeroam, right? that resource includes a custom script that gives you a random blip/chat colour.
-
It all depends in what game mode are you using at your server, we can't guess.
-
That's my point, I never send an script if they don't send the money (and I confirm it's there) first.
-
Indeed, that's what I suposed. <map src="markers.map" dimension="0" />
-
You put this in a .map file, right? and in meta.xml it's used as a map? because that's not a script syntax.
-
https://wiki.multitheftauto.com/wiki/GetTeamColor
-
I have no idea if Java and Lua are similar, but if you give it time you'll get it easy after all, also, you can get examples from the MTA wiki (wiki.multitheftauto.com), here are two introductions. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI Good luck
-
I found it stupid, you sell the Scripts however you want to.
-
512MB is the space of hard drive you have for your server? I think is not much, since you could get big server logs (2 Gb one's).
-
Vehicle mod: https://community.multitheftauto.com/ind ... ls&id=2242
-
, I suposed this wasn't possible..
-
Stolen Valhalla script: https://community.multitheftauto.com/index.php?p= ... ls&id=2237
-
-- client side addEventHandler("onClientGUIClick",getRootElement(), function () if (source == gui["info.contact_1"]) then local info = guiGetText(gui["lineEdit"]) triggerServerEvent("onUpdateInfo",getLocalPlayer(),info) end end) -- server side addEvent("onUpdateInfo",true) addEventHandler("onUpdateInfo",getRootElement(), function (info) local serial = getPlayerSerial(source) executeSQLUpdate ( "PersonalInfo", "Edit6 = '"..info.."'","serial = '" .. serial .. "'") setElementData ( source ,"info.contact",edit6,true) end)
