Jump to content

DNaumov

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by DNaumov

  1. Thank you very much, it really helped!
  2. Hello, I have an error related to CEF, my created browser refuses to open localhost. I create a browser, load the url in it - "http://localhost:3000 ", but nothing happens, the browser just doesn't appear. I also tried to enter other urls - "http://127.0.0.1:3000", "192.168.0.**:3000" The browser does not open in any of the options. Although if I set for example the url - "http://google.com ", then the browser immediately opens google. I have suspicions that the loadBrowserURL() function. He just can't handle the IP, he needs the domain. I will be grateful if someone can help. Here is my code ( client.lua ) : local browser = createBrowser ( 1920, 1080, false, false ); function setURL( ) loadBrowserURL ( source, "http://localhost:3000" ); end; addEventHandler ( "onClientBrowserCreated", browser, setURL ); addEventHandler( "onClientRender", root, function() dxDrawImage( 0, 0, 1920, 1080, browser ); end );
  3. https://drive.google.com/file/d/1Jis9VwtQ9_Bfp_77dUH9NTGRxCrYNdey/view?usp=sharing
  4. function drawRadial() dxDrawImage(741*scr.x,320*scr.y,438*scr.x,439*scr.y,'assets/circle.png',0,0,0,tocolor(30,30,30,160)) dxDrawImage(741*scr.x,317*scr.y,438*scr.x,439*scr.y,circle2,1,0,0,tocolor(30,30,30,160)) dxDrawImage(745*scr.x,319*scr.y,438*scr.x,439*scr.y,circle2,73,0,0,tocolor(30,30,30,160)) dxDrawImage(745*scr.x,322*scr.y,438*scr.x,439*scr.y,circle2,145,0,0,tocolor(30,30,30,160)) dxDrawImage(741*scr.x,325*scr.y,438*scr.x,439*scr.y,circle2,217,0,0,tocolor(30,30,30,160)) dxDrawImage(737*scr.x,322*scr.y,438*scr.x,439*scr.y,circle2,289,0,0,tocolor(30,30,30,160)) dxDrawBorderedText('МЕНЮ ТРАНСПОРТА',845*scr.x,264*scr.y,845*scr.x,264*scr.y,tocolor(255,255,255,255),1,font1s) dxDrawBorderedText('BANSHEE',920*scr.x,290*scr.y,845*scr.x,264*scr.y,tocolor(175,175,175,255),0.8,font1s) dxDrawText('Починить',998*scr.x,425*scr.y,998*scr.x,425*scr.y,tocolor(109,109,109,255),1,font2s) dxDrawText('Перевернуть',1030*scr.x,572*scr.y,998*scr.x,425*scr.y,tocolor(109,109,109,255),1,font2s) dxDrawText('Заглушить\nдвигатель',930*scr.x,910*scr.y,998*scr.x,425*scr.y,tocolor(109,109,109,255),1,font2s,'center','center') dxDrawText('Включить\nгабариты',660*scr.x,745*scr.y,998*scr.x,425*scr.y,tocolor(109,109,109,255),1,font2s,'center','center') dxDrawText('Запереть двери',795*scr.x,425*scr.y,998*scr.x,425*scr.y,tocolor(109,109,109,255),1,font2s) if isCursor(978*scr.x,529*scr.y,109*scr.x,66*scr.y) then dxDrawRectangle(100,100,100,100) end dxDrawImage(901*scr.x,480*scr.y,117*scr.x,119*scr.y,'assets/circle.png',0,0,0,tocolor(10,10,10,255)) if getKeyState("mouse1") then isButtonClick = true else isButtonClick = false end end Assets
  5. Thanks for the help, but I'm new to this business, if it's not difficult, could you write a small example?
  6. Good afternoon, how can I make the cursor react only in a certain position? That part is circled on the screen, if the cursor is on it, then it is necessary that it grows I am writing through a translator, sorry for my English Example
×
×
  • Create New...