
xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
errors... ?
-
getAccountData setAccountData - For default saving way... Not MySQL/SQL
-
Its simple... When the player quits, get all his attached elements, save it (how ever you want,) when he joins, check to see if he haves any saved items.
-
Make sure you know how the client side scripts work... function vehicle() if (source==GUIEditor_Button[1]) then local x,y,z = getElementPosition(localPlayer) veh = createVehicle(449, x,y,z) end end addEventHandler("onClientGUIClick", root , vehicle)
-
you know other site free host ? Most if not all web hosters have blocked firewalls. You will just have to pay, or keep searching until you can find one that will let you use a remote connection. unfortunately, i havn't had any luck with it.
-
Because, web servers have firewalls, they don't allow other connections. I am familiar with 000webhost, the only way to let remote connections connect, is by donating. You can contact them for more info.
-
yea, it is possible...
-
As far as i know, the only way to use commands are though the console (F8) or the mian chat box, that isn't re-scripted.
-
This is a SEXYY map
-
function motel (thePlayer) setElementInterior ( thePlayer, 15, 2215.8032226563, -1150.6900634766, 1025.796875 ) thePlayer = thePlayer setTimer ( function () setElementInterior(thePlayer,interiorIdHere) end, 10000, 1, thePlayer ) outputChatBox ( "[#f1f1f1/Motel]#ff0000O player ".. getPlayerName(thePlayer) .." foi para o Motel vá tambem #f1f1f1/Motel", getRootElement(),255,20,0,true) end addCommandHandler ( "motel", motel )
-
This way would probably work a little better, just a little less messy: function windowAdjusting() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end bindKey("F4","down",windowAdjusting)
-
In the admin ACL put: <object name="resource.YourResourceName" />
-
-- Here is what it will basicly look like, but it needs a little work. Server: addCommandHandler("shout", function ( player, command, text1 ) -- You'll need to edit it, so you can do more then just one word. if ( text1 ) then triggerClientEvent(root, "onPlayerShout", root, text1 ) end end ) Client: text = "" function onPlayerShout ( text ) if ( text ) then text = text addEventHandler("onClientRender", root, dx ) else return end end addEvent("onPlayerShout", true) addEventHandler ( "onPlayerShout", root, onPlayerShout ) function dx ( ) local rx, ry = guiGetScreenSize() dxDrawText(text, 0, 0, rx, ry, tocolor( 255, 255, 255, 255 ), 3, "default", "center", "center") end
-
use MTA wiki to get all the functions.
-
** epic fail to me **
-
Hello guys, im making a speed o' meter, and after about 1 min of being in a car, i get this error: [Expected dx-font at argument 8, got nil] I don't know why it does it, because it works just fine, for about 1 min... code: dxDrawText(speed.." KPH", screenWidth*0.750, screenHeight*0.95, screenWidth, screenHeight, tocolor(255, 255, 255, 255), scale, dxCreateFont( "digital.ttf", 20 ), "right")
-
Im always up for making a tut! Its just, i don't know what to make... If you have any requests of what to see, just say
-
Wow, it actually worked! Thank you very much I cannot believe i didn't catch that, lol.
-
Hello guys, im trying to make a moving GUI, with onClientRender, but I have one prob. It moves to slow if I do the Y + 1, but that is the only one that will work. How can i make it so I can do something like Y + 10, and it will stop in the center? Code: bindKey("M","down", function () addEventHandler("onClientRender", root, moveGUI) end ) function moveGUI() local x, y = guiGetPosition(window, false) if (y ~= (ry/2-334/2)) then -- If its not the center guiSetPosition(window, x, y + 1, false) -- Too slow else removeEventHandler("onClientRender", root, moveGUI) end end
-
I believe this is what your trying to make: function repararVeiculo(player, command, source) outputChatBox ( "Estamos reparando seu veículo aguarde 15 Segundos!", player, 255, 0, 0, true ) if (getPedOccupiedVehicle(player)) then car = getPedOccupiedVehicle(player) setTimer( function () fixVehicle(car) end, 15000, 1 ) else return end end addCommandHandler("reparar",repararVeiculo)
-
Hello guys, what do you guys think would be an excellent idea on a freeroam server?
-
Try this... addEventHandler("onClientResourceStart", resourceRoot, function () dff = engineLoadDFF("client/poolcue.dff",338 ) engineReplaceModel(dff,338) txd = engineLoadTXD("client/poolcue.txd",false) engineImportTXD(txd,338) end ) function guitarDamage(attacker,weapon,bodypart) if (weapon == 7) then local x,y,z = getElementPosition(source) local sound = playSound3D("client/guitar_1.wav", x,y,z) outputChatBox("YOU GOT HIT",source) end end addEventHandler("onClientPlayerDamage", localPlayer, guitarDamage)