Jump to content

PlayAkoya

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by PlayAkoya

  1. I love you GTX you saved my day. Issue resolved!
  2. @GTX: Thank you for your quick response. -> My GUI 's are covered by the DX function. F8 for example..
  3. Hi, I wanted to ask whether it is possible to lay my GUI login on dxDrawImage! Currently all GUI 's are concealed under the DX functions! I hope for your help!
  4. Hi, GTX Thanks for your answer! Could you help me with the implementation. (dxDrawImageSection?) local screenWidth, screenHeight = guiGetScreenSize() local webBrowser = createBrowser(screenWidth, screenHeight, false, false) function webBrowserRender() dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/embed/IhchfhxvPKI?rel=0&autoplay=1&loop=1&playlist=IhchfhxvPKI") addEventHandler("onClientRender", root, webBrowserRender) end)
  5. @Buffalo: Now it will start immediately but the problem is that the video edge rises briefly and then back to. This does not happen you will be right in the video! Would love to do it and at iRace: mtasa://144.76.221.194:22003 Hope someone knows the solution!
  6. Hi together, I 'd like to do a login which is happening now in the background a video. My problem is that YouTube is always at the beginning of the frame window will open and you can see it from YouTube 's would like that you only see the video and nothing else! How do I get it out that the video starts immediately and no frame drum is start at the beginning? local screenWidth, screenHeight = guiGetScreenSize() local webBrowser = createBrowser(screenWidth, screenHeight, false, false) function webBrowserRender() dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/tv#/watch?v=IhchfhxvPKI") addEventHandler("onClientRender", root, webBrowserRender) end) I hope you can help me.
  7. Good Evening, someone can say when the official version 1.5 MTA will come out? For all player.. Has anyone had any experience with the Function: createLight? https://wiki.multitheftauto.com/wiki/CreateLight
  8. Can someone help me with the problem someone else? https://bugs.multitheftauto.com/view.php?id=8892
  9. Because you only markers currently may make Clientseitg with attachElements! On the server side will not have always been there with problems! Objekt attachElement with Marker and Event from Server it does not work.
  10. Hi, I would like to Client-side markers - > Save the server side? I need it for a client-side query whether the marker is already occupied or not? marker = createMarker(0, 0, 0, "corona", 2.0, 0, 0, 0, 0, getRootElement()) setElementData(marker, "BankState", false) function onHitBankautomat(player, dim) if (getElementData(source, "BankState") == false) setElementData(source, "BankState", true) else outputChatBox("The ATM is already taken!", 200, 0, 0) end end addEventHandler("onClientMarkerHit", marker, onHitBankautomat) Unfortunately, the script only works for the Local Clienseitgen markers and not for all client side marker by all players. I find this very hard and hope someone can help me!
  11. Hi, I'm from Germany and i have a Problem with my Script. I'd like to open the luggage compartment or trunk of the Andromeda! Vehicle Name: Andromeda Vehicle ID: 592 -- Server side getPlanWS = createVehicle(592, -1594.900390625, -2752.2001953125, 49.599998474121, 0, 0, 54.99755859375) setElementFrozen(getPlanWS, true) setVehicleDamageProof(getPlanWS, true) setTimer(setVehicleLandingGearDown, 50, 1, getPlanWS, true) setTimer(setVehicleDoorOpenRatio, 100, 1, getPlanWS, 1, 1) I hope someone has a solution for my problem and know how can I get it open.
  12. @Walid: Thank you for your help it works.
  13. Hi, I'm from Germany and i have a Problem with my Script. I'd like a train horn create the all hear on the server. Unfortunately, my script does not work and I can not continue to hope for your help. File train_horn.lua Server: function onTrainHornUse (player, key, keyState) local theVehicle = getPedOccupiedVehicle(player) if (not theVehicle) then return end if (getElementModel(theVehicle) == 537) or (getElementModel(theVehicle) == 538) then if (keyState == "down") then triggerClientEvent(root, "onStartTrainHorn", player) elseif (keyState == "up") then triggerClientEvent(root, "stopTrainHorn", player) end end end function onBindPlayerTrain(player) bindKey(player, "h", "down", onTrainHornUse) bindKey(player, "h", "up", onTrainHornUse) end addEventHandler("onPlayerSpawn", getRootElement(), onBindPlayerTrain) File train_horn_sound.lua Client: function onStartTrainHorn(player) if (player) then local theVehicle = getPedOccupiedVehicle(player) if (not theVehicle) then return end local x, y, z = getElementPosition(player) getTrainSound = playSound3D("addons/trainhorn/trainhorn.wav", x, y, z) setSoundVolume(getTrainSound, 1.0) setSoundMaxDistance(getTrainSound, 190) attachElements(getTrainSound, theVehicle) end end addEvent("onStartTrainHorn", true) addEventHandler("onStartTrainHorn", getRootElement(), onStartTrainHorn) function stopTrainHorn() if isElement(getTrainSound) then stopSound(getTrainSound) end end addEvent("stopTrainHorn", true) addEventHandler("stopTrainHorn", getRootElement(), stopTrainHorn) Now I wait for an answer.
×
×
  • Create New...