Viudes

Members
  • Content count

    30
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Viudes

  • Rank
    Rat
  1. How can I edit my draw distance?

    delete system32
  2. Why this show all clients`?

    function ShowControlPanel(seat) seat = getPedOccupiedVehicle (localPlayer) vehiclee = getPedOccupiedVehicle(localPlayer) if (vehiclee) and getPedOccupiedVehicleSeat (localPlayer) == 0 and localPlayer == localPlayer then bool = not bool showCursor(bool) guiSetVisible(ControlPanel,bool) end end bindKey("F2","up",ShowControlPanel) --why this qui show all players? This is clientside and Should show only localplayer
  3. guiCreateMemo fix

    I never use community resources. I wanna learn lua and that not gonna happend if I use comminity:~
  4. guiCreateMemo fix

    Infobox = guiCreateMemo(sWidth/700, sWidth/800, sWidth, sHeight,'How I can listen music from youtube?\n\nFirst open interner browser then go to site called dropbox(https://www.dropbox.com) and sing in or sing up.\nThen go to youtube and searche your song.\nWhen you are decided your song go to https://ytmp3.cc/ and but your song url to convert box.(Make sure you have "mp3" selected).',false,howToCreateSpeaker) I try to make helpbox but lower resolutions this not show correct. How i can fix this?
  5. attachElements not work!

    attachElement not work. i dont know how i can solve this This clientside script is called by server root but still not work all player only who play music hear that unction startMusicFinally(Playerx,Playery,Playerz,MusicLink,MusicPlayer) Vehicle = getPedOccupiedVehicle (localPlayer) if Vehicle then stopSound(speakerSound [localPlayerName]) speakerSound [localPlayerName]= playSound3D(MusicLink,Playerx,Playery,Playerz,true) attachElements(speakerSound [localPlayerName],Vehicle,0,0,0.5) attachTimer = setTimer(KeepSound,50,0) else stopSound(speakerSound [localPlayerName]) speakerSound [localPlayerName]= playSound3D(MusicLink,Playerx,Playery,Playerz,true) end end function KeepSound() attachElements(speakerSound [localPlayerName],Vehicle,0,0,0.5) end
  6. I don't know how to solve this error.

    How i can stream music from youtube?
  7. I don't know how to solve this error.

    I don't changed any code. I add spaces like you see. And I dont need check Fileexist beacuse its link https://dl.dropbox.com/s/vubbsivz6nlfs53/qQBLZMULSbo_fmt43.mp3? or i don't know what you mean
  8. I get always error when i try play sound all player. Sound work localplayer but other clients get error: Clientside: function eventHandler() if source == test then triggerServerEvent("PlaySelectedMusic",resourceRoot,guiGetText(editBox),localPlayer) end end function FinallyPlaySound() x,y,z = getElementPosition(localPlayer) sound = playSound3D(guiGetText(editBox),x,y,z, true) end Serverside: function test(message) triggerClientEvent( "PlaySoundAll",root) outputChatBox(message) end
  9. local connectedPlayers = getElementsByType ( "player" ) for i, aPlayer in ipairs(connectedPlayers) do bindKey ( aPlayer, "x", "down",SuperStop) end WHy this script not start working when player join? always need to restart script.
  10. why that not work?

    Now i fix those but still not work! local fakboi = dxCreateTexture("dream.png") function kana() dxDrawImage3D(-2289.07007, -1627.28430, 483.75891, 20, 20, fakboi, tocolor(255,255,255,255)) end addEventHandler("onClientRender", root, kana)
  11. why that not work?

    Whyt that script not work? gives that error: local troll = dxCreateTexture("trollface.png") function kana() dxDrawImage3D(-2289.07007, -1627.28430, 483.75891, 20, 20, fakboi, tocolor(255,255,255,255)) end addEventHandler("onClientRender", root, kana)
  12. How to become a professional scripter?

    https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  13. Why warpPlayerIntoVehicle not work?

    but i cant warp players with that
  14. Why warpPlayerIntoVehicle not work? function start(hitElement) pelaaja = hitElement for i,v in pairs(Kohteet) do Player = getLocalPlayer() Nimi = guiGridListGetItemText (MissionList, guiGridListGetSelectedItem (MissionList ), 1) KoodiNimi = guiGridListGetSelectedItem (MissionList ) payout = guiGridListGetItemText (MissionList, guiGridListGetSelectedItem (MissionList ), 2) if KoodiNimi > 0 then Rekka = createVehicle (515,2451.3999023438,-2091.6999511719,14.699999809265,0,0,90) Vaunu = createVehicle (435,2460.6591796875,-2091.369140625,14.193350791931,0,0,90) warpPlayerIntoVehicle (player,Rekka) outputChatBox("Destination: "..(Nimi).." Payout: "..payout.."$",0,255,0) if KoodiNimi == 1 then
  15. How i can get only "I need this data " from the table? sample = { {"I dont need this","I need this data","I dont need this","I dont need this"} } I hope you understand what i mean.