Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2020-06-30, 12:33


RTVEUROAGD







Wiek: 20
Na forum: 2408 dni
Posty: 98
Nick w MP: pryncypalki

Piwa: 2423

Respekt: 20,5

Ostrzeżeń: 100%
Witam , Mam troche zaniefajnie z suszark? ot?? , Jak namierzam na Gracza to wyskakuj? takie b??dy na suszarce
Cz?owiek https://imgur.com/a/FYkljbt
Auto https://imgur.com/a/rzF4SOF

+ Nie ma ?adnej opcji do wyboru po naje?dzaniu scroolem

Pozdrawiam Kubik25

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Chorywacja
Wysłany: 2020-06-30, 12:40


PatryKK.

Emeryt LUA






Wiek: 26
Na forum: 3061 dni
Posty: 1060
Nick w MP: PatryKK.

Piwa: 2322

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

Wklej kod suszarki

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-30, 12:41


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
Czy dobrze podpi??e? eldaty?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-30, 12:59


RTVEUROAGD







Wiek: 20
Na forum: 2408 dni
Posty: 98
Nick w MP: pryncypalki

Piwa: 2423

Respekt: 20,5

Ostrzeżeń: 100%
Kod:

local w,h = guiGetScreenSize()

local vehicle={}
vehicle.id=nil
vehicle.speed=nil
vehicle.driver=nil

local option={}
value=nil
element=nil
option.selected=0
option.actived=false

option["vehicle"]={
"Napraw pojazd",
"Odeslij do przechowalni/usu?",
"Respawnuj Pojazd",
"Przenie? pojazd",
"Zatankuj pojazd",
}

option["player"]={
"Przenie? do siebie",
"Prze?aduj gracza",
"Ulecz gracza",
"Przenie? do niego",
}

function isPedAiming ( thePedToCheck )
if isElement(thePedToCheck) then
if getElementType(thePedToCheck) == "player" or getElementType(thePedToCheck) == "ped" then
if getPedTask(thePedToCheck, "secondary", 0) == "TASK_SIMPLE_USE_GUN" then
return true
end
end
end
return false
end

function isRendering()
if option.actived == true then
if not element then return end
local vx,vy,vz=getElementVelocity(element)
mathSpeed=(vx^2+vy^2+vz^2)^0.5*1.8*100
if mathSpeed < 0 then return end
if value == "vehicle" then
local vid=getElementData(element,"vehicle:id") or "b??d"
local driver=getElementData(element,"vehicle:driver") or "b??d"
local plate=getVehiclePlateText(element) or 0
dxDrawRectangle((297/1280)*w, (300/720)*h, (660/1280)*w, (80/720)*h, tocolor(0, 0, 0, 154), false)
dxDrawText(string.format("%.02f", mathSpeed).." km/h", (296/1280)*w, (600/720)*h, (486/1280)*w, (53/720)*h, tocolor(255, 255, 255, 255), (2.00/1280)*w, (2.00/720)*h, "default-bold", "center", "center", false)
dxDrawText("Rejestracja: "..plate, (297/1280)*w, (653/720)*h, (486/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
dxDrawText("ID: "..vid.."\n\nOstatni kierowca: "..driver:gsub("#%x%x%x%x%x%x",""), (486/1280)*w, (600/720)*h, (688/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
if getElementData(localPlayer,"player:faction") ~= 5 then
dxDrawText(option[value][option.selected] or "Nie wybrano", (688/1280)*w, (600/720)*h, (957/1280)*w, (83/720)*h, tocolor(217, 0, 0, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--dxDrawRectangle((297/1280)*w, (340/720)*h, (660/1280)*w, (80/720)*h, tocolor(0, 0, 0, 154), false)
--dxDrawText("Kierowca: "..owner, (296/1280)*w, (690/720)*h, (486/1280)*w, (53/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--dxDrawText("Rejestracja Pojazdu: "..plate, (297+1/1280)*w, (720+1/720)*h, (486+1/1280)*w, (80+1/720)*h, tocolor(0, 0, 0, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--dxDrawText("Rejestracja Pojazdu: "..plate, (297/1280)*w, (720/720)*h, (486/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--dxDrawText("ID Pojazdu: "..vid.."\n\nTurbo: "..turbo, (486/1280)*w, (690/720)*h, (688/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--if getElementData(localPlayer,"player:faction") ~= 5 then
--dxDrawText(option[value][option.selected] or "BRAK", (688/1280)*w, (690/720)*h, (957/1280)*w, (83/720)*h, tocolor(217, 0, 0, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
end
end
if value == "player" then
local id=getElementData(element,"id") or "b??d"
local sid=getElementData(element,"player:sid") or "b??d"
local srp=getElementData(element,"player:srp") or "b??d"
local faction=getElementData(element,"player:faction") or "b??d"
if not getElementData(element,"p:inv") then
dxDrawRectangle((297/1280)*w, (300/720)*h, (660/1280)*w, (80/720)*h, tocolor(0, 0, 0, 154), false)
dxDrawText("SID: "..sid, (296/1280)*w, (600/720)*h, (486/1280)*w, (53/720)*h, tocolor(255, 255, 255, 255), (2.00/1280)*w, (2.00/720)*h, "default-bold", "center", "center", false)
dxDrawText("SRP: "..srp, (297/1280)*w, (653/720)*h, (486/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
dxDrawText(getPlayerName(element):gsub("#%x%x%x%x%x%x","").."("..id..")\n\nFr"..faction, (486/1280)*w, (600/720)*h, (688/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
if getElementData(localPlayer,"player:faction") ~= 5 then
dxDrawText(option[value][option.selected] or "Nie wybrano", (688/1280)*w, (600/720)*h, (957/1280)*w, (83/720)*h, tocolor(217, 0, 0, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--dxDrawRectangle((297/1280)*w, (340/720)*h, (660/1280)*w, (80/720)*h, tocolor(0, 0, 0, 154), false)
--dxDrawText("UID: "..uid, (296/1280)*w, (720/720)*h, (486/1280)*w, (53/720)*h, tocolor(255, 255, 255, 255), (2.00/1280)*w, (2.00/720)*h, "default-bold", "center", "center", false)
--dxDrawText("RP: "..ogp, (297/1280)*w, (650/720)*h, (486/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--dxDrawText(getPlayerName(element).."("..id..")\n\nS?u?ba: "..faction, (486/1280)*w, (690/720)*h, (688/1280)*w, (80/720)*h, tocolor(255, 255, 255, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
--if getElementData(localPlayer,"player:faction") ~= 5 then
--dxDrawText(option[value][option.selected] or "BRAK", (688/1280)*w, (690/720)*h, (957/1280)*w, (83/720)*h, tocolor(217, 0, 0, 255), (1.00/1280)*w, (1.00/720)*h, "default-bold", "center", "center", false)
end
end
end
end
end

addEventHandler("onClientPlayerTarget",root, function(el)
if isPedAiming(localPlayer) and el and getPedWeapon(localPlayer) == 22 and getElementData(localPlayer, "player:admin") == true then
if not option.actived then
if getElementData(el,"p:inv") then return end
if getElementType(el) == "vehicle" then
value="vehicle"
element=el
option.actived=true
elseif getElementType(el) == "player" then
value="player"
element=el
option.actived=true
else return end
bindKey("mouse1", "down", onElementClicked)
bindKey("lalt", "down", onElementMoveDown)
bindKey("lctrl", "down", onElementMoveUp)
addEventHandler("onClientHUDRender", root, isRendering)
end
else
if option.actived then
vehicle.el=nil
option.actived=false
unbindKey("mouse1", "down", onElementClicked)
unbindKey("lalt", "down", onElementMoveDown)
unbindKey("lctrl", "down", onElementMoveUp)
removeEventHandler("onClientHUDRender", root, isRendering)
end
end
end)

function onElementMoveUp() if option.selected > 6 then option.selected=1 else option.selected=option.selected+1 end end
function onElementMoveDown() if option.selected < 1 then option.selected=6 else option.selected=option.selected-1 end end
function onElementClicked() if option.selected > 0 then triggerServerEvent("onDryerAction", localPlayer, value, option.selected, element) outputDebugString ( option.selected) end end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-30, 13:11


PatryKK.

Emeryt LUA






Wiek: 26
Na forum: 3061 dni
Posty: 1060
Nick w MP: PatryKK.

Piwa: 2322

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

Z jakiej paczki to jest suszarka?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-30, 13:22


RTVEUROAGD







Wiek: 20
Na forum: 2408 dni
Posty: 98
Nick w MP: pryncypalki

Piwa: 2423

Respekt: 20,5

Ostrzeżeń: 100%
Pystories 3.0 z Ma?ymi przer?bkami z Your Adventure
2k20

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-01, 19:31


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Wejd? sobie w kazdy plik kodu, ctrl+f i wpisz sobie "Frb??d" wtedy dowiesz sie kiedy wywala ten b??d gdy zobaczysz warunek.

Postaw piwo autorowi tego posta
 

 
Tagi: suszarka
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku