Jump to content

xScatta

Members
  • Posts

    181
  • Joined

  • Last visited

Everything posted by xScatta

  1. I have a question. If you have for example Assault Rifle - M4A3 CCO SD in your hands and other guy is having Assault Rifle - MG36 in his hands then do you will see his model and you will see your model? Or they will be the same?
  2. function seatbeltW(thePlayer) if (getElementData(thePlayer, "seatbelt") == false) then local x, y = guiGetScreenSize() image = guiCreateStaticImage(x - 180, y - 140.5, 64, 64, "seatbelt.png", false) setTimer(destroyImage, 500, 1, image) end end addEventHandler("onClientVehicleEnter", getRootElement(), seatbeltW) Not tested but should work.
  3. 'playeraccount' isn't defined.
  4. Hi all i have a problem i will put code now and the description of problem will be under. function healMedic() for key, player in ipairs(getElementsByType( "player")) do local hp = getElementHealth(player) setElementHealth(player,hp+1) end end setTimer(healMedic,1000,0) So. why my health raises only one time? But if i replace "+" with "-" it will fall down but when it is "+" then it raises only once. Any help.? Thanks.
  5. Osobiście uważam że skoro już zrobiliście wasz 'kokpit' w DX to reszta też mogła by być w DX a nie gui. Ale powodzenia z serwerem.
  6. I solved the problem by replacing bindKey with "onClientKey".
  7. Sorry for 3rd bump but i really don't understand what i'm doing wrong.
  8. Hey guys my problem is that when i press 'i' the window appears but when i press 'i' again then window are supposed to disappear but it won't. It's same in the vehicle. No output in debug script 3. function controls(cond) showCursor(cond) guiSetInputEnabled(cond) end function invShow() if not getPedOccupiedVehicle( localPlayer ) then if guiGetVisible(window) then guiSetVisible( window, false ) controls(false) else triggerServerEvent("onClientUpdateInventory",localPlayer) updatePlayerINV() guiSetVisible(window,true) controls(true) end end if getPedOccupiedVehicle( localPlayer ) then local veh = getPedOccupiedVehicle( localPlayer ) if getElementData(veh,"vehinv") then if guiGetVisible(windowVeh) then guiSetVisible(windowVeh,false) controls(false) else triggerServerEvent("onClientUpdateInventory",veh) updateVehInv() guiSetVisible( windowVeh, true ) end else if guiGetVisible(window) then guiSetVisible( window, false ) controls(false) else triggerServerEvent("onClientUpdateInventory",localPlayer) updatePlayerINV() guiSetVisible(window,true) controls(true) end end end end bindKey("i","down",invShow)
  9. How many you will pay and what you need to do?
  10. Zapisz ENCODING jako UTF-8 podejrzewam że zapisujesz w Unicode a tego mta nie czyta.
  11. Wejdź tutaj. https://wiki.multitheftauto.com/wiki/SetElementSpeed tutaj masz gotową funkcję na prędkość.
  12. Teleportowanie gracza do pojazdu? Eh... warpPedIntoVehicle(gracz,pojazd) -- Tutaj masz tworzenie checkpointa. veh = createVehicle(modelpojazdu,x,y,z) addEventHandler("onPlayerVehicleEnter",getRootElement(),function (vehicle) if veh == vehicle then -- sprawdzamy czy pojazd do ktorego wsiadl gracz jest naszym stworzonym pojazdem local naszcheckpoint = createMarker(x,y,z,"checkpoint") end end
  13. Which function exactly?
  14. Hey guys how can i check if is a image in meta.xml?
  15. @Max+ I want to make it editable for player.
  16. @Max+ Text is invisible too.
  17. @Max+ It don't works cause the text is not visible too. @Necktrox But i wanna to have the text editable at all.
  18. Yeah i mean to keep the text in editbox visible but the just box invisible.
  19. Hey Guys! I have a small question. Is there a way to place GUI editbox and then make the editbox invisible but text in it visible?
×
×
  • Create New...