-
Posts
181 -
Joined
-
Last visited
Everything posted by xScatta
-
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?
-
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.
-
getElementsInDimension
-
'playeraccount' isn't defined.
-
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.
-
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.
-
I solved the problem by replacing bindKey with "onClientKey".
-
Sorry for 3rd bump but i really don't understand what i'm doing wrong.
-
Bump again..
-
*BUMP*
-
"No output in debug script 3."
-
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)
-
How many you will pay and what you need to do?
-
problem : could not parse meta file for resource
xScatta replied to DommerPL's topic in Polish / Polski
@MrTasty powinno być 'src' nie zauważyłem. -
problem : could not parse meta file for resource
xScatta replied to DommerPL's topic in Polish / Polski
Zapisz ENCODING jako UTF-8 podejrzewam że zapisujesz w Unicode a tego mta nie czyta. -
Wejdź tutaj. https://wiki.multitheftauto.com/wiki/SetElementSpeed tutaj masz gotową funkcję na prędkość.
-
nie wiem jak zrobić skrypt ...
xScatta replied to DommerPL's topic in Pomoc ze skryptami i programowaniem w Lua
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 -
Which function exactly?
-
Hey guys how can i check if is a image in meta.xml?
-
@Max+ I want to make it editable for player.
-
@Max+ Text is invisible too.
-
@Max+ It don't works cause the text is not visible too. @Necktrox But i wanna to have the text editable at all.
-
Yeah i mean to keep the text in editbox visible but the just box invisible.
-
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?