Jump to content

RangeR..

Members
  • Posts

    115
  • Joined

  • Last visited

Everything posted by RangeR..

  1. local myMarker = createMarker(-1828.77515, 18.73340, 16.59393, 'arrow', 2.0, 255, 0, 0, 150) function craftenter() setElementInterior ( myMarker, 3) end addEventHandler("onMarkerHit", myMarker, craftenter) Hello, I've been trying to make this simple script but when I try to enter the marker, the marker disappears. Someone help me please.
  2. We tried it but it didn't work. local sql = dbConnect( "mysql", "dbname=mydbname;host=127.0.0.1;unix_socket=/var/run/mysqld/mysqld.sock", "my.username", "my password") unix_socket=/var/run/mysqld/mysqld.sock there is no such file
  3. You can contact the website owner if it doesn't work
  4. There is a German sponsoring website providing low slots free server. https://gameserver-sponsor.de
  5. Try removing the function you used for the marker.
  6. Oh, so you guys started this... Anyways, good luck.
  7. Hi guys, I couldn't decide where to post this problem, I decided to post it here. My server was suffering from a problem since tomorrow, I did many efforts to fix the problem but I could not fix it. I mistakenly gave admin rights to a traitor and he deleted something else from the server and its bugged. New players can't register, admin and even console can't use "refresh" command, it says "ACL: Access Denied"(I ALREADY ADDED "command.refresh" IN BOTH OF THE ACL'S BUT STILL IT ISN'T FIXED). Admins can't do /addaccount as well(I ALREADY ADDED "resource.admin" to ACL BUT STILL THIS BUG DIDN'T FIX IT SAYS "Access denied". Somebody please help me.
  8. Hi guys, i was trying to make a gui script but showCursor gui is not working. Client.lua local x, y = guiGetScreenSize() local cX, cY = (x / 2) - (348 / 2), (y / 2) - (356 / 2) spawnscreen = guiCreateWindow(514, 104, 286, 391, "Spawn Panel", false) guiWindowSetSizable(spawnscreen, false) guiSetProperty(spawnscreen, "CaptionColour", "FF00FF00") gridlist1 = guiCreateGridList(9, 22, 115, 110, false, spawnscreen) guiGridListAddColumn(gridlist1, "CLASSES", 0.9) gridlist2 = guiCreateGridList(9, 142, 115, 235, false, spawnscreen) guiGridListAddColumn(gridlist2, "TEAMS", 0.9) spawnmemo[1] = guiCreateMemo(132, 22, 144, 110, "", false, spawnscreen) spawnstaticimage[1] = guiCreateStaticImage(133, 143, 143, 169, "mtalogo.png", false, spawnscreen) spawnbutton[1] = guiCreateButton(134, 317, 142, 60, "SPAWN", false, spawnscreen) guiSetProperty(spawnbutton[1], "NormalTextColour", "FF00FF00") guiSetVisible(spawnscreen, false) function showLogin() guiSetVisible(login_wnd, true) showCursor(true) toggleControl("chatbox", false) fadeCamera(false) end addEvent("showgui", true) addEventHandler("showgui", root, showLogin) Server.lua function work() triggerClientEvent(source, "showgui", source) end addEventHandler("onPlayerJoin", root, work)
  9. Hi there, I've made an ammunition script and i am having the following problems with it 1. When the resource starts or when i reconnect, the ammu-nation screen appears 2. I've added Jetpack in it which gives jetpack but i am confused that how will a script bind "removePlayerJetpack" when he presses "j" and how can i make it that if I've bought it already, i'll be able to remove it and get it again and again by pressing "j" until disconnect. so what will be the command, please help Here are the required fields for my problem client.lua GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(84, 10, 631, 553, "Zombie Apocalypse ~ Armas", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FF00") GUIEditor.button[20] = guiCreateButton(468, 420, 140, 87, "Comprar Jetpack (Until Disconnect) \n $100000", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[20], "default-bold-small") guiSetProperty(GUIEditor.button[20], "NormalTextColour", "FF00FF00") end ) bindKey ( "F1", "down", function ( ) local state = ( not guiGetVisible ( GUIEditor.window[1] ) ) guiSetVisible ( GUIEditor.window[1], state ) showCursor ( state ) end ) function onGuiClick () if (source == GUIEditor.button[20]) then triggerServerEvent ("Jetpack", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server.lua function Jetpack() if getPlayerMoney(source) >= 100000 then takePlayerMoney(source, 100000) givePedJetPack(source) outputChatBox("Usted ha comprado Jetpack $100000", source, 0, 255, 0) else outputChatBox("No tienes suficiente dinero para comprar este artículo", source, 255, 0, 0) end end addEvent("Jetpack", true) addEventHandler("Jetpack", getRootElement(), Jetpack)
  10. give me a free server my skype : fahadazeem5 i need control panel access too
  11. Hi guys, here is my new MTA SA server DM for pakistanis Please join. mtasa://144.76.58.20:22060 CLICK HERE TO JOIN SERVER
  12. Yahan aap tamam posts kar skte hain jo scripting ke related hon aur new topic na banana pray kyunke es say boht spamming ho rhi thi. Agar aap ko scripting mai kisi bhi tarah ki help chahiye to yhan post krain, aap ki madad zaroor ki jaye gi.
  13. function scriptCreateTank ( localPlayer ) local localPlayer = getRandomPlayer() local x, y, z = getElementPosition ( localPlayer ) createVehicle ( 432, x, y, z ) outputChatBox ( "You've been given a tank", localPlayer ) end addEventHandler("onClientGUIClick", vipcar, scriptCreateTank, false) es ko client side use kar rha hu aur button b yahi naam sy hai magar kaam nahi kar rha
  14. Salam, Jysa k aap log jaante hain k mai newbie scripter hoon. Main ne ye GUI script bgair liye bnai hai Bind key F1 hai https://community.multitheftauto.com/index.php?p= ... s&id=11327
  15. shukriya, dono chal rahi hain magar ryancit2 ki zyada easy hai
  16. Salam, mai ne ek script GUI phly khudd bna li hai aur ab mai es ko mazeed seekh raha hun mai nay ek choti si script GUI k zariye banai thi jis se F2 press krny k baad ek gui panel khul jata hai aur jab "SET HEALTH" ko click krain to health full ho jate hai, ye script chal nahi rahi mai server.lua or client.lua yhan likh raha hun server.lua function health() setElementHealth(source, 100) outputChatBox("you've been given health", source, 255, 0, 0) end addEvent("healthdata", true) addEventHandler("healthdata", root, healthdata) client.lua GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(321, 197, 154, 140, "HEALTH PANEL", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(10, 22, 134, 108, "GIVE HEALTH", false, GUIEditor.window[1]) end ) bindKey ( "F2", "down", function ( ) local state = ( not guiGetVisible ( GUIEditor.window[1] ) ) guiSetVisible ( GUIEditor.window[1], state ) showCursor ( state ) end ) function health() triggerServerEvent("healthdata", root, setElementHealth) end addEventHandler("onClientGUIClick", GUIEditor.button[1], health, false) shukriya.
  17. Error WARNING: help/script.lua:23: bad argument @ 'bindKey' [Expected player at argument 1, got string '1'
  18. Hi guys, idk what happened to my GUI window of help panel script, it's not working. The code is written below GUIEditor = { label = {}, window = {}, staticimage = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(136, 22, 533, 505, "Help System - F1", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.17, 0.05, 0.67, 0.10, "Help System by Robin", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") GUIEditor.memo[1] = guiCreateMemo(-8, 57, 83, 109, "", false, GUIEditor.label[1]) GUIEditor.memo[2] = guiCreateMemo(92, 82, 355, 328, "HELP SYSTEM\n\nRules:\nNo Cheating.\nNo Bad Words.\nRespect Staff.\n\nCommands:\n\n/kill\n\nBinds:\n\nF1 - Freeroam\nF3 - Help", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(92, 415, 355, 80, ":guieditor/images/examples/mtalogo.png", false, GUIEditor.window[1]) guiSetVisible(guiEditor.window[1], false) end ) function guiToggleVisible ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) else guiSetVisible ( GUIEditor.window[1], true ) end end bindKey ( "F1", "down", guiToggleVisible )
  19. https://community.multitheftauto.com/index.php?p= ... ls&id=7688
×
×
  • Create New...