Jump to content

KITT1995

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by KITT1995

  1. I tried reinstalling drivers but it still doesn't work. Any other helps?
  2. I don't think that is a driver problem cuz the joypad works in everygame i tried. when i go to home i'll try that solution EDIT: I tried again the gamepad with connetting it while mta was running. But it doesn't however recognize it
  3. Hi! I have MTA 1.2 and today i tried to connect my ps3 gamepad to pc with motioninjoy. Gamepad works in all games but MTA doesn't recognize it, it says "Joypad not connected". I also tried a Thrustmaster DT 2 in 1 and this doesn't work too. Please anyone can help me?
  4. There is a function to get the ip of the server that I'm running? Don't say to me to check the public ip on 192.168.1.1. I want to get the IP with a function. Is this possible?
  5. It's not possible to add an exception in the meta?
  6. Hi, What i wanna to do is that only some clients will do the download of a thing. To specify the clients i use their serials. This is my code client-side local serial = getPlayerSerial () if serial == "clientserial" then txd = engineLoadTXD("data/infernus.txd") engineImportTXD(txd,411) dff = engineLoadDFF("data/infernus.dff",411) engineReplaceModel(dff,411) end In this case i wanna that only the client that have the serial "clientserial", will make the download of the car and not all clients. Is it possible doing this?
  7. It doesn't work with onClientElementStreamIn, everytime the original collision function replaceVeh() txd = engineLoadTXD("data/bullet.txd") engineImportTXD(txd,541) dff = engineLoadDFF("data/bullet.dff",541) engineReplaceModel(dff,541) txd = engineLoadTXD("data/faggio.txd") engineImportTXD(txd,462) dff = engineLoadDFF("data/faggio.dff",462) engineReplaceModel(dff,462) txd = engineLoadTXD("data/copcarsf.txd") engineImportTXD(txd,597) dff = engineLoadDFF("data/copcarsf.dff",597) engineReplaceModel(dff,597) txd = engineLoadTXD("data/androm.txd") engineImportTXD(txd,592) dff = engineLoadDFF("data/androm.dff",592) engineReplaceModel(dff,592) txd = engineLoadTXD("data/cargobob.txd") engineImportTXD(txd,548) dff = engineLoadDFF("data/cargobob.dff",548) engineReplaceModel(dff,548) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceVeh) function reload () setTimer(replaceVeh, 1000, 1) -- make the modding function to load a second time after 1 second end addEventHandler ( "onClientElementStreamIn", getResourceRootElement(getThisResource()), reload )
  8. Which clientside function can i use to do this? "onvehiclespawn" doesn't exist
  9. There isn't a way to do it when creating vehicle? With the event "onVehicleSpawn"?
  10. In the wiki it is said that for vehicles the collisions will be taken directly from the .dff. Then i need to put .col to vehicle too?
  11. Why when i put a custom vehicle the collisions remain the same of the original vehicle and not of the custom one? This is the script: txd = engineLoadTXD("data/bullet.txd") engineImportTXD(txd,541) dff = engineLoadDFF("data/bullet.dff",541) engineReplaceModel(dff,541) txd = engineLoadTXD("data/faggio.txd") engineImportTXD(txd,462) dff = engineLoadDFF("data/faggio.dff",462) engineReplaceModel(dff,462) txd = engineLoadTXD("data/copcarsf.txd") engineImportTXD(txd,597) dff = engineLoadDFF("data/copcarsf.dff",597) engineReplaceModel(dff,597) txd = engineLoadTXD("data/androm.txd") engineImportTXD(txd,592) dff = engineLoadDFF("data/androm.dff",592) engineReplaceModel(dff,592) txd = engineLoadTXD("data/cargobob.txd") engineImportTXD(txd,548) dff = engineLoadDFF("data/cargobob.dff",548) engineReplaceModel(dff,548)
  12. Thanks it works!! It works too when a vehicle gets destroy. Exactly what I wanted
  13. this is the part of the script where I need help. I can't post the entire script cuz is too long funtion removeNeon () local neon = getAttachedElements (theVehicle) for index , attachedElement in ipairs ( neon ) do if getElementModel ( attachedElement ) == 3907 or getElementModel ( attachedElement ) == 3917 then destroyElement (attachedElement) end end end addEventHandler ( "onVehicleExplode", getRootElement(), removeNeon )
  14. It doesn't work with setElementParent. It only destroy the two elements of last vehicle that they were applied
  15. I made this script funtion removeNeon () local neon = getAttachedElements (theVehicle) for index , attachedElement in ipairs ( neon ) do if getElementModel ( attachedElement ) == 3907 or getElementModel ( attachedElement ) == 3917 then destroyElement (attachedElement) end end end What I want is that when a car that have attached 3907 or 3917 element, when that car explode that element will be destroy too. If it is possible i want to that element destroy when a car will be unload (i mean the destroy command in admin panel).
  16. Thanks again JR10. It works!!
  17. KITT1995

    GUI Problem

    I made this code: function enableGUI () if getPedOccupiedVehicle(source) == false then outputChatBox ("You're not in a vehicle") else if guiGetVisible(GUI_Window[1]) == false then guiSetVisible(GUI_Window[1], true) showCursor(true) else guiSetVisible(GUI_Window[1], false) showCursor(false) end end end bindKey ("1", "down", enableGUI ) When i'm not in a car and I press 1 i get that message in chatbox, but when I'm in a car and I press 1 i get that message again and the GUI doesn't appear. Can someone help me? thanks
  18. Ok thanks again i have forgot the 'or' thing
  19. Thanks it works!!! However if there are multiple elements attached to the car with differents model ID, what i need to put in mineModel?
  20. This is the code i wrote function destroyNeon ( thePlayer, commandName ) if ( thePlayer ) then local neon = getAttachedElements (veh) if neon == tablevalue? then destroyElement (mine) destroyElement (mine1) end end end What i wanna to do is that when a vehicle have mine and mine1 attached then those two elements will be destroyed. Help me plaease
  21. How i can return a table value in chatbox or console? I wanna get all attached elements that are attached to a car with getAttachedElements
  22. Ok i get it working. This is the code: function autoLogin() local serial = getPlayerSerial (source) if serial == "serialoftheplayer" then local account = getAccount ( "accountname", "accountpassword" ) logIn (source, account, "accountpassword") end end addEventHandler("onPlayerJoin", root, autoLogin) I hope it can be helpful
  23. What I'm trying to do is that when a playet that is admin join in the server, get instantly login instead of writing everytime his account's username and pass.
×
×
  • Create New...