-
Posts
33 -
Joined
-
Last visited
Everything posted by Viudes
-
so what is the problem..?
-
First of all can you explain better? I can't understand what you mean
-
delete system32
- 1 reply
-
- help
- i need help
-
(and 3 more)
Tagged with:
-
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
-
I never use community resources. I wanna learn lua and that not gonna happend if I use comminity:~
-
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?
-
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
-
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
-
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)
-
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)
-
https://wiki.multitheftauto.com/wiki/Scripting_Introduction
-
but i cant warp players with that
-
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
-
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.
-
say always error "stack overflow" How i can fix this? function spawnVehicle(x,y,z,VehicleName) id = getVehicleModelFromName(VehicleName) spawnVeh = spawnVehicle (id, -2322.58496, -1622.78491, 483.70908) end addEvent("onSpawnVehicle", true) addEventHandler("onSpawnVehicle",getRootElement(),spawnVehicle)
-
I am so dumb omg... Thanks anyway!
-
'getPedOccuipiedVehicle' [Expected sting ped at argument 1, got sring 'left']
-
That not work.. Still error
-
function onStart() window = guiCreateWindow(0.34, 0.10, 0.15, 0.40,"Save Vehicle",true) grillist = guiCreateGridList(0.01, 0.05, 1, 0.85, true, window) vehiclename = guiCreateEdit( 0.05, 0.91, 0.5, 0.06, "", true, window) save = guiCreateButton( 0.6, 0.9, 0.4, 0.3, "Save", true, window) column = guiGridListAddColumn(grillist, "Saved vehicles", 0.85 ) guiSetVisible(window, false) addEventHandler( "onClientGUIClick",save, onSavePress) end
-
why getPedOccupiedVehicle not work?
-
Yeah that work but is still trigger all player..