Jump to content

KITT1995

Members
  • Posts

    37
  • Joined

  • Last visited

KITT1995's Achievements

Rat

Rat (9/54)

0

Reputation

  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 )
×
×
  • Create New...