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

Wysłany: 2019-07-18, 17:28


droper24hp







Wiek: 25
Na forum: 3201 dni
Posty: 14
Nick w MP: Droper24hp



Respekt: 50

Kod:

local sW, sH = guiGetScreenSize()
local YouTube = guiCreateBrowser( 0.15*sW , 0.1*sH, sW*0.7, sH*0.7, false, true, false)
dxDrawImage( 0.20*sW , 0.6*sH, sW*0.12, sH*0.12, "Iphone1.png" )
guiSetVisible(YouTube,false)
guisetvisible(Iphone1.png,false)
local przelgadarka = guiGetBrowser(YouTube)
addEventHandler("onClientBrowserCreated", przelgadarka,
function()
loadBrowserURL(przelgadarka, "https://www.youtube.com/")
setBrowserVolume(przelgadarka, 0.5)
setBrowserRenderingPaused(przelgadarka, true)
end
)

bool dxDrawImage ( float posX, float posY, float width, float height, mixed image,
[ float rotation = 0, float rotationCenterOffsetX = 0, float rotationCenterOffsetY = 0,
int color = tocolor(255,255,255,255), bool postGUI = false ] )
local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution.

function renderDisplay ( )
local seconds = getTickCount() / 1000
local angle = math.sin(seconds) * 80
dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'Iphone1.png', angle, 0, -120 )
end


function HandleTheRendering ( )
addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender.
end
addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)

function YT ()
showCursor ( not guiGetVisible(YouTube) )
guiSetVisible( YouTube, not guiGetVisible(YouTube) )
toggleAllControls( not guiGetVisible(YouTube) )
setBrowserRenderingPaused(przelgadarka, not guiGetVisible(YouTube) )
if guiGetVisible(YouTube) then
outputChatBox( "**Otwarto serwerowy Telefon !**" ,255 ,0 ,0 ,true )
outputChatBox( "Mo?esz zmieni? g?o? komend?: /vol.yt 0-100" ,255 ,0 ,0 ,true )
end
end
bindKey ( "F4", "down", YT )

addCommandHandler ("vol.yt",function (command, value)
local value = (value/100)
if tonumber (value) then
setBrowserVolume (przelgadarka, value)
else
outputChatBox ("Stopie? g?o?no?ci powinien by? wprowadzony w liczbach 0-100")
end
end)

kto? pomo?e bo nie dzia?a co? bo pisz? ?e nie wyczytuj? zdjecia Iphone1.png

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-18, 17:35


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Poka? tre?? b??du. Plik jest dodany w mecie I w odpowiednim folderze?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-18, 17:36


droper24hp







Wiek: 25
Na forum: 3201 dni
Posty: 14
Nick w MP: Droper24hp



Respekt: 50

ERROR: Couldn't find file Iphone1.png for resource yt
Loading of resource 'yt' failed
ERROR: Problem with resource: yt; Couldn't find file Iphone1.png for resource yt

[ Dodano: 2019-07-18, 17:37 ]
Kod:

<meta>
<script src="c-side.lua" type="client"></script>
<file src="Iphone1.png"/>
</meta>


[ Dodano: 2019-07-18, 17:38 ]
folder o nazwie File

[ Dodano: 2019-07-18, 17:41 ]
Wilq,

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-18, 18:35


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

Je?li jest w folderze file to robisz to tak:


<meta> 
<script src="c-side.lua" type="client"/>
<file src="file/Iphone1.png"/> 
</meta



local sWsH guiGetScreenSize() 
local YouTube guiCreateBrowser0.15*sW 0.1*sHsW*0.7sH*0.7falsetruefalsedxDrawImage0.20*sW 0.6*sHsW*0.12sH*0.12":file/Iphone1.png" guiSetVisible(YouTube,falseguisetvisible(Iphone1.png,falselocal przelgadarka guiGetBrowser(YouTubeaddEventHandler("onClientBrowserCreated"przelgadarka, 
function() 
loadBrowserURL(przelgadarka"https://www.youtube.com/"setBrowserVolume(przelgadarka0.5setBrowserRenderingPaused(przelgadarkatrueend 
bool dxDrawImage float posXfloat posYfloat widthfloat heightmixed image, 
[ float rotation 0float rotationCenterOffsetX 0float rotationCenterOffsetY 0int color tocolor(255,255,255,255), bool postGUI false ] ) 
local screenWidth,screenHeight guiGetScreenSize() -- Get screen resolution. 

function renderDisplay ( ) 
local seconds getTickCount() / 1000 
local angle math.sin(seconds) * 80 
dxDrawImage screenWidth/500100240'Iphone1.png'angle0, -120 end 


function HandleTheRendering ( ) 
addEventHandler("onClientRender"rootrenderDisplay) -- Keep everything visible with onClientRenderend 
addEventHandler("onClientResourceStart",resourceRootHandleTheRendering) 

function YT () 
showCursor not guiGetVisible(YouTube) ) 
guiSetVisibleYouTubenot guiGetVisible(YouTube) ) 
toggleAllControlsnot guiGetVisible(YouTube) ) 
setBrowserRenderingPaused(przelgadarkanot guiGetVisible(YouTube) ) 
if guiGetVisible(YouTubethen 
outputChatBox"**Otwarto serwerowy Telefon !**" ,255 ,,,true outputChatBox"Mo?esz zmieni? g?o? komend?: /vol.yt 0-100" ,255 ,,,true end 
end 
bindKey "F4""down"YT addCommandHandler ("vol.yt",function (commandvaluelocal value = (value/100) 
if tonumber (valuethen 
setBrowserVolume (przelgadarkavalue) 
else 
outputChatBox ("Stopie? g?o?no?ci powinien by? wprowadzony w liczbach 0-100"end 
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-18, 19:48


droper24hp







Wiek: 25
Na forum: 3201 dni
Posty: 14
Nick w MP: Droper24hp



Respekt: 50

Resource 'yt' changed, reloading
ERROR: Couldn't find file Iphone1.png for resource yt
Loading of resource 'yt' failed
ERROR: Problem with resource: yt; Couldn't find file Iphone1.png for resource yt
Gravgor,

[ Dodano: 2019-07-18, 19:48 ]
nadal nie dzia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-18, 20:43


Ragnarok







Wiek: 24
Na forum: 2732 dni
Posty: 20

Piwa: 306

Respekt: 70

Ostrzeżeń: 100%
Upewnij si? ?e format pliku to png

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-07-18, 22:16


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"Ragnarok" napisał/a:

Upewnij si? ?e format pliku to png


To te? ale dok?adnie sprawd? nazw? pliku i to gdzie jest wrzucony.

Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Tagi: telefon :: ktoś :: pomożę?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Odpowiedz do tematu

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