Elvis Willian

Members
  • Content count

    35
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Elvis Willian

  • Rank
    Rat

Details

  • Gang
    ll
  1. IDLE sound engine car

    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)
  2. Simplified object script - help

    that's right I needed, thank you just finished saving me worked perfectly
  3. HELP - check name and ID by table

    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)
  4. Simplified object script - help

    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)
  5. Simplified object script - help

    thanks for help me
  6. Simplified object script - help

    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)
  7. Handling Editor System

    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
  8. Realistic sound box script help

    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
  9. Realistic sound box script help

    Thank you, I'm going to work and test.
  10. Realistic sound box script help

    I do know however how to modify for a component of the vehicle?
  11. Realistic sound box script help

    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 )
  12. HELP - MOVE OBJECT ON STREAM MUSIC

    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)
  13. help me create colisions

    I created an object, but when I put it in the game, it creates a collision that should not be there. how to solve ?
  14. Replace SFX sounds in mta

    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
  15. Animations Replace

    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