Jump to content

Waileer

Members
  • Posts

    137
  • Joined

  • Last visited

Everything posted by Waileer

  1. Thanks for your huge effort to help someone
  2. Could you explain more please?
  3. Hello! So I have this custom map that im trying to add http://www.gtainside.com/en/sanandreas/ ... -no-trees/ it has like 4 different DFFs, but only 1 COL and 1 TXD. Sadly I can add just 1 part of the map because other parts just wont work. I'm using engineLoadDFF, engineReplaceModel, well basic stuff that is needed to replace objects. I replaced sucessfully one map, which had only 1 dff, txd and col so it wasn't problem. Anyone can help me out with this?
  4. Hello. I want to ask, if there is any better, or faster way to import handlings from HEDIT into script - so basically the cars will load with their handlings on spawn. I have one way, but that's just too long plus you can't set everything (such as double exhaust) I hear about editing handling.cfg but what I have to do for that?
  5. Hello, I downloaded one resource and tried to edit it so it plays song on speaker from edit box at GUI. But after clicking "Create" or "Remove" it doesn't do anything Here is client.lua commandGUI = "speaker" screenW,screenH = guiGetScreenSize() addEventHandler("onClientResourceStart", resourceRoot, function() Window = guiCreateWindow((screenW - 384) / 2, (screenH - 102) / 2, 384, 102, "Speakers", false) guiWindowSetSizable(Window, false) bCreate = guiCreateButton(83, 64, 72, 27, "Create", false, Window) bRemove = guiCreateButton(160, 64, 72, 27, "Remove", false, Window) bClose = guiCreateButton(237, 64, 72, 27, "Close", false, Window) addEventHandler("onClientGUIClick",bCreate, playTheSound) addEventHandler("onClientGUIClick",bRemove, stopTheSound) link = guiCreateEdit(43, 31, 331, 26, "", false, Window) guiCreateLabel(10, 36, 26, 16, "Link:", false, Window) guiSetVisible (Window, false) end ) function openGUI() guiSetVisible (Window, true) showCursor (true) end function closeGUI() guiSetVisible (Window, false) showCursor (false) end function playTheSound(x, y, z, vehicle) local url = guiGetText(link) sound = playSound3D(url, x, y, z) if (isElement(vehicle)) then attachElements(sound, vehicle) end end addEvent("playTheSound", true) addEventHandler("playTheSound", root, playTheSound) function stopTheSound(x, y, z) stopSound(sound) end addEvent("stopTheSound", true) addEventHandler("stopTheSound", root, stopTheSound) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == bClose) then closeGUI() end end ) addCommandHandler(commandGUI,openGUI)
  6. Waileer

    Drift Script

    Is there any newest suggestion? Anyone knows how I could fix this?
  7. Waileer

    Drift Script

    Hello, I'm using this drift script https://community.multitheftauto.com/ind ... ils&id=556 and where it should say "Best Drift: name, score" but it doesn't work, it keeps showing "Best Drift: N/A 0"
  8. This is Visual Basic. The source code is really easy, unless you really don't know anything about programming. Thanks! Regarding to all PMs I got asking me for making launcher, please send full data, all the pictures, and then we can talk. pls, create from my ?? please !! Sorry but I'm no longer making launchers. Any moderator, please lock this.
  9. Pridaný! Možno skočim pozriet na ten server
  10. This is Visual Basic. The source code is really easy, unless you really don't know anything about programming. Thanks! Regarding to all PMs I got asking me for making launcher, please send full data, all the pictures, and then we can talk.
  11. Zdravim! Len tak by ma zaujimalo ze kolko slovákov alebo cechov tu hrá. Ja hrám uz asi 4 roky na SAURu. Je to supa server, mam tam svoj clan Tuners a tak. Tak ak si slovak alebo cech, vypln ten formular dolu a odosli! Ja ta tu potom dam do zoznamu Meno v hre: Slovensko/ Cesko: Server: Tu je zoznam slovakov a cechov. Slovensko: - Waileer Cesko: - Rataj - DarkFace
  12. I think it doesn't have any special model name/ID when burned.
  13. As far as I know it's MTA related bug. I were meeting this bug on many servers.
  14. I think after you install that GTA San Andreas and install MTA it will ask to download patch/update? and then it should work normally!
  15. 1. Nope you can't. Maybe this could help you http://mta.dzek.eu/mmove/ 2. If you start Map Editor for first time it asks you if you want to go through tutorial or no. could help you even if it's a bit old 3. In Settings > Binds
  16. Waileer

    Help me please

    You can easily search thru this page: https://community.multitheftauto.com/ If it's not there I'm afraid you will have to script it or you will have to get a scripter.
  17. It shouldn't affect the server. Are you sure that Day-z vehicle spawn resources are running or running correctly?
  18. Open up ACL. After group name you want to restrict resource to write this line: <object name="resource.yourresource"></object>
  19. Waileer

    Forgot Password

    You should contact administrator team of that server.
  20. It's a bit different. All is good only the problem is it won't spawn vehicle after selecting it from gridlist and pressing button.
  21. What should I use then?
  22. Hey again, well theres problem. When I select vehicle, and click button it doesn't spawn. Any thoughts? Client Side: function createVehicleSelection ( ) local sWidth, sHeight = guiGetScreenSize() local Width,Height = 328,537 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) windowVehicleShop = guiCreateWindow(X,Y,Width,Height,"Vehicle Shop",false) gridlistVehicleShop = guiCreateGridList(9, 82, 308, 406, false, windowVehicleShop) guiGridListAddColumn(gridlistVehicleShop, "Name", 0.3) guiGridListAddColumn(gridlistVehicleShop, "Price", 0.3) guiGridListAddColumn(gridlistVehicleShop, "ID", 0.3) guiSetVisible(windowVehicleShop,false) guiWindowSetSizable(windowVehicleShop, false) guiCreateStaticImage(53, 29, 223, 49, "images/vehicleshop.png", false, windowVehicleShop) buttonBuy = guiCreateButton(9, 498, 147, 29, "Buy", false, windowVehicleShop) buttonCancel = guiCreateButton(172, 498, 146, 29, "Cancel", false, windowVehicleShop) addEventHandler("onClientGUIClick",buttonBuy, createVehicleHandler, false) addEventHandler("onClientGUIClick",buttonCancel, closeVehicleShop, false) populateGridList( ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), function() createVehicleSelection() end ) local marker = createMarker ( 1671.2398681641, 1814.2731933594, 9.50, "cylinder", 1.5 ) setMarkerColor ( marker, 255, 255, 255, 255 ) function showVehicleSelection( hitElement ) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowVehicleShop) then guiSetVisible(windowVehicleShop, true) showCursor(true) populateGridList( ) end end end addEventHandler( "onClientMarkerHit", marker, showVehicleSelection ) function closeVehicleShop () guiSetVisible ( windowVehicleShop, false ) showCursor( false ) end addEventHandler( "onClientGUIClick", buttonCancel, closeVehicleShop, false ) function populateGridList ( ) local file = xmlLoadFile ( "data/vehs.xml" ) if ( not file ) then assert ( file, "Fail to load vehs.xml" ) else local children = xmlNodeGetChildren ( file ) for _,child in ipairs ( children ) do local attrs = xmlNodeGetAttributes ( child ) local ID, Name, Price = attrs.id, attrs.name, attrs.price if ( not Name ) then outputDebugString ( "name attribute not set for item", 2 ) end if ( not Price ) then outputDebugString ( "cash attribute not set for item", 2 ) end if ( not ID ) then outputDebugString ( "score attribute not set for item", 2 ) end local itemRow = guiGridListAddRow ( gridlistVehicleShop ) guiGridListSetItemText ( gridlistVehicleShop, itemRow, 1, Name, false, false ) guiGridListSetItemText ( gridlistVehicleShop, itemRow, 2, Price, false, true ) guiGridListSetItemText ( gridlistVehicleShop, itemRow, 3, ID, false, true ) end xmlUnloadFile ( file ) end end function click ( button, state, sx, sy, x, y, z, elem, gui ) if ( ( state == "down" ) and ( source == gridlistVehicleShop ) ) then local ID = tonumber ( guiGridListGetItemText ( gridlistVehicleShop, guiGridListGetSelectedItem ( gridlistVehicleShop ), 1 ) ) if ( ID ) then triggerServerEvent ( "createVehicle", localPlayer, ID ) end end end addEventHandler( "onClientGUIClick", buttonBuy, click ) Server Side: function onResourceStart() createPed ( 17, 1671.2398681641, 1814.2731933594, 10.8203125, 90 ) createBlip ( 1671.2398681641, 1814.2731933594, 10.8203125, 55 ) end addEventHandler ( "onResourceStart", getRootElement(), onResourceStart ) function buyVehicle ( model ) createVehicle ( model, 1664.0642089844, 1809.1302490234, 10.8203125 ) end addEvent( "createVehicle", true ) addEventHandler( "createVehicle", root, buyVehicle )
×
×
  • Create New...