Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    MTA jobs

    https://community.multitheftauto.com/index.php?p= ... ls&id=2484
  2. JR10

    need help

    You need to get admins table server side, send it to client, and loop through it, and edit dxDrawVoice to be dxDrawText, with of course editing the arguments.
  3. JR10

    need help

    Take a look in voice resource.
  4. Can't you edit it? Next time, look at the function's wiki page. local screenWidth, screenHeight = guiGetScreenSize() function M ( ) local money = getPlayerMoney(localPlayer) local ping = getPlayerPing(localPlayer) dxDrawText( "Your Money: "..tostring(money), 44, screenHeight-43, screenWidth, screenHeight, tocolor ( 0, 255, 0, 255 ), 2, "default-bold" ) dxDrawText( "Your Ping: "..tostring(ping), 44, screenHeight-55, screenWidth, screenHeight, tocolor ( 255, 255, 0, 255 ), 2, "default-bold" ) end addEventHandler("onClientRender",root, M)
  5. xml, file functions client side will look in the resource client side, the one you downloaded. MTA San Andreas 1.1.1\mods\deathmatch\resources xmlLoadFile ( ":resource/config.xml" ) Will look for config.xml in: MTA San Andreas 1.1.1\mods\deathmatch\resources\resource\config.xml The reason it didn't work in the first place, because the config.xml wasn't client side, when you specified it in the meta.xml, the client downloads it.
  6. There is markers, all around LS, with blips.
  7. I'm inactive and busy these days, I don't have any time.
  8. Look at the name, no wonder the console made a beep sound, screaming.
  9. But they will have to download it again, again and again. Waiting for some experienced reply.
  10. JR10

    Client Side Mods.

    You mean mods, for the server? When you join, you have the mods, when you leave, back to normal? We already have that, Engine Functions. https://wiki.multitheftauto.com/wiki/Cli ... _functions
  11. local sw, sh = guiGetScreenSize() local count = 0 addEventHandler ( "onClientRender" , root , function() dxDrawText( count, 44, sh-450, sw, sh, tocolor ( 255, 0, 0, 255 ), 4, "default" ) end) setTimer ( function() count = count + 1 end, 1000 , 50 ) --You can change the number of counts, that 50 over there.
  12. local count = 0 addEventHandler ( "onClientRender" , root , function() dxDrawText( count, 44, sh-450, sw, sh, tocolor ( 255, 0, 0, 255 ), 4, "default" ) end) setTimer ( function() count = count + 1 end, 1000 , 50 ) --You can change the number of counts, that 50 over there.
  13. What do you mean? Adding yourself as admin? https://wiki.multitheftauto.com/wiki/Ser ... nistrators
  14. g_base_col = createColCuboid ( 3109.0913085938, -842.58416748047, 28.436388015747, 250, 280, 20 ) function hit ( pla, dim ) if getElementType ( pla ) == "player" then local playername = getPlayerName(player) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle then outputChatBox ( "Welcome to the admin base,"..playername ) end setElementData ( pla, "inArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "You must be part of the staff to enter", pla, 255, 0, 0 ) end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then outputChatBox ( "Good Bye!", pla, 0, 250, 0 ) end else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) end end end addEventHandler ( "onColShapeLeave", g_base_col, leave )
  15. JR10

    [Web] Scoreboard

    It's The HTTP's post not the server's. Usually: http://176.9.9.117:22005/dxscoreboard/
  16. Read the portforward section, https://wiki.multitheftauto.com/wiki/Ser ... forwarding
  17. You will find a complete guide for your server here: https://wiki.multitheftauto.com/wiki/Server_Manual
  18. JR10

    [REL] Shader Panel

    Another awesome design, good job, keep up.
  19. JR10

    GUI Error

    --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1]) FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(FireS,2) GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],3) GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,255,255) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2]) --GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2]) --GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then r = guiGetText(GUIEditor_Edit[1]) g = guiGetText(GUIEditor_Edit[2]) b = guiGetText(GUIEditor_Edit[3]) setWaterColor(r,g,b,255) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) setWaterColor doesn't have a player argument.
  20. What? vehicle is a variable, it's not related to any other element.
  21. You do need to have a vehicle variable, to use it with setElementData.
  22. Your problem, is making a key for every vehicle? use setElementData ( vehicle, "key", math.random(0,1000))
  23. What do you mean? Creating multiple vehicles is with multiple createVehicle, preferably a loop. Post your trial?
×
×
  • Create New...