Jump to content

Ryosuke

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by Ryosuke

  1. Hi, I'm facing a problem!. I bought a new notebook Acer E5 553G T4TJ, when I enter servers with panels in "DX", it ends up causing an extreme lag on my computer, running at 5 fps, I've tried everything any solution??
  2. It is not my friend. this map I'm modeling especially for mta sa I plan to use it for an open world racing server
  3. Thank you very much, it helped me solve a big problem. Thanks
  4. Hi, I modeled a map and would like to break the field-of-view limit. there is a limit of 300 units of the distance object, how can I make to make all objects visible from a greater distance? txd = engineLoadTXD ( "1.txd" ) engineImportTXD ( txd, 1515 ) dff = engineLoadDFF ( "1.dff" ) engineReplaceModel ( dff, 1515 ) col = engineLoadCOL( "1.col" ) engineReplaceCOL( col, 1515 ) engineSetModelLODDistance(1515, 300)
  5. Hello, I need help to complete a slow idle script for the vehicle, but I just could not get a good result, if you can help me, thank you! RX7_sound = { {"001.wav",494}, } function replacesound(player) for i,OBJ in ipairs(RX7_sound) do vehicle = getPedOccupiedVehicle (OBJ[2]) if vehicle then sound = playSound (OBJ[1],looped = true) setSoundVolume(sound, 0.5) setSoundMaxDistance(sound,25) end end end addEventHandler("onClientResourceStart",root,replacesound)
  6. that's right I needed, thank you just finished saving me worked perfectly
  7. Hi, I'd like some help solving the problems in my script. it substitutes objects per table, but I can not verify the name and ID and give the correct functions to run everything, someone to help? Garage_OBJ_COL = { {"garage_1.col",1484}, {"garage_2.col",1485}, } function replacemodels(player) for i,OBJ in ipairs(Garage_OBJ_COL) do table.insert (engineLoadCOL,{OBJ[1]}) table.insert (engineReplaceCOL,{OBJ[2]}) end end addEventHandler("onResourceStart",root,replacemodels)
  8. to work I just need to make it check the name and ID and give the function, just do not know why it does not work function replacemodels(player) for i,OBJ in ipairs(Garage_OBJ_COL) do table.insert (engineLoadCOL,{OBJ[1]}) table.insert (engineReplaceCOL,{OBJ[2]}) end end addEventHandler("onResourceStart",root,replacemodels)
  9. I need help to create this script that replaces objects across a table, thus getting more practical and quick to convert objects Garage_OBJ_DFF = { {"garage_1.dff",1455}, {"garage_2.dff",1455}, } Garage_OBJ_TXD = { {"garage_1.txd",1455}, {"garage_1.txd",1484}, } Garage_OBJ_COL = { {"garage_1.col",1484}, {"garage_2.col",1484}, } function replacemodels(player) for i,object1,object2 in ipairs(Garage_OBJ_DFF) do table.insert(object1[1],object2[2]) object1 = engineLoadDFF object2 = engineReplaceModel end for i,object1,object2 in ipairs(Garage_OBJ_TXD) do table.insert(object1[1],object2[2]) object1 = engineLoadTXD object2 = engineImportTXD end for i,object1,object2 in ipairs(Garage_OBJ_COL) do table.insert(object1[1],object2[2]) object1 = engineLoadCOL object2 = engineReplaceCOL end end addEventHandler("onClientRender",root,replacemodels)
  10. Hi, I need help creating a DX bar that when moved by the mouse it changes the acceleration of the vehicle function bar move () move = dxDrawImage(x*35, y*60, x*230, y*58, "bar.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) setVehicleHandling(v, "engineAcceleration", move ) end
  11. function musicStartFunc() local stream = playSound("http://92.222.66.160:80/") local theVeh = getPedOccupiedVehicle(localPlayer) local getComponent = getVehicleComponents(theVeh) if (theVeh) then for k in pairs (getComponent) do local x, y, z = getVehicleComponentPosition(theVeh, stream) local fftTable = getSoundFFTData(theVeh,stream, 2048, 257) if not (fftTable) then return false end for i = 1, 256 do setVehicleComponentPosition(fftTable,'bump_rear_dummy', x+5, y+0, z+0) end end end end bindKey("9","down",musicStartFunc) What is problem ?? Help pls
  12. I do know however how to modify for a component of the vehicle?
  13. English : Hello everyone, I would like a little help on a realistic sound box system. see the link how it would work, if possible help I thank Português : Ola a todos , gostaria de uma pequena ajuda em um sistema de caixa de som realista . vejam no link como funcionaria , se possível ajudar eu agradeço see the image (vejam a imagem ) : https://imgur.com/a/Ccuwm The system will work using bindKey("r","down", function() if cone1 then stopSound(cone1) else local cone1 playSound("IP STREAM RADIO") --- the object moves in the rhythm of the sound local theVeh = getPedOccupiedVehicle(localPlayer)local getComponent = getVehicleComponents(theVeh) if (theVeh) then for k in pairs (getComponent) do local x, y, z = getVehicleComponentPosition(theVeh, cone) cone1 = setVehicleComponentPosition(theVeh, cone, x+1, y+1, z+1) end end end )
  14. Hi, I'm trying to develop a realistic speaker system. but there is a problem, I can not move the component as it plays -- HELP ME PLS local working = true local stream = playSound("http://91.121.157.114:8421/stream") local moveOn = true function toggleRadio() working = not working if working == false then moveOn = false setSoundVolume(stream, 0) else moveOn = true setSoundVolume(stream, 1) end end bindKey("r","down",toggleRadio) function move() local theVeh = getPedOccupiedVehicle(localPlayer) local getComponent = getVehicleComponents(theVeh) if (theVeh) then for k in pairs (getComponent) do if (k == "alto") then if (not components["alto"]) then local x, y, z = getVehicleComponentPosition(theVeh, k) if (working) then local ls = getSoundLevelData(stream); if (ls ~= false) then if moveOn == true then setVehicleComponentPosition(theVeh,"alto", ls/-100, y, z) end end end end end end end end addEventHandler("onVehicleEnter",root,move)
  15. I created an object, but when I put it in the game, it creates a collision that should not be there. how to solve ?
  16. I would like to know if it would be possible to replace the SFX files, so it would be easy to create a system of sounds for vehicles without being that ugly and bad done by scripts
  17. Hello, I would like to give you a suggestion that would improve the mta for the better, in order to create new things. Replacing the original animations, I saw that this was disabled because it caused problems, but it would be really fun to create new things in mta sa
  18. Hello, I would like to ask for the help to create a system to rotate an object when I hold a certain button , It will only stop after I release objectRotation = 0; objeto = createObject ( 1852,2714,-1756.2700195313,77.559997558594, 0, 0, 0 ) function func () objectRotation = objectRotation + 1.20 setElementRotation(objeto, 0, 0, objectRotation) end function func2 () objectRotation = objectRotation - 1.20 setElementRotation(objeto, 0, 0, objectRotation) end bindKey ( "2", "down", func2 ) bindKey ( "3", "down", func )
  19. I tried to create something to attach on a weapon model. Can someone help me solve this? function weapon1(player) local weaponID = getElementModel(arma_1) if weaponID == 356 then PosX = 0 PosZ = 1.4 PosY = 0.4 else return end x,y,z = getElementPosition(player) local arma = createObject(1830, x, y, z+30) attachElements(arma, arma_1,PosX,PosZ,PosY) end end addCommandHandler("weap", weapon1)
  20. I want to create two weapons from the same ID, so each of the two will have different skins
  21. Hello would like tips to develop a script to duplicate the weapons . help me pls
  22. This would help me a lot if you can send me. I'm very grateful.
×
×
  • Create New...