Jump to content

Piorun

Members
  • Posts

    421
  • Joined

  • Last visited

Everything posted by Piorun

  1. I found that there is bad time sync. When I joined from my PC to my server it shows 0:45 when i was on server from laptop where was 0:44. Anyway it would be cool to add another parameter to function setTime - seconds. Thanks
  2. I thought that wasnt my fault but i really need this resource working .
  3. It's not createObject, it's createObjectPreview. Read more here: https://community.multitheftauto.com/ind ... s&id=11836
  4. Hi, Today i decided to use object_preview resource. Here's problem: On my GTX 960 when i use objectCreatePreview on PED i have this: http://imgur.com/LLmqevZ but when i use this function on my old HP laptop i have this: http://imgur.com/Jx4CHKX Why? What I'm doing wrong? nonMRT on.
  5. Hi, I want to ask you what are the differences between browser made by createBrowser and guiCreateBrowser?
  6. I really hate dx I mean calculate almost everything and writing functions which exists in for ex. jQuery.
  7. Is this good to make whole interface using HTML and JS or i should use dx for this? I think about perfomance.
  8. Hi, Today i found something weird in MTA. In CEF if i want to use Google font <link href='https://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'> It works perfectly. But if i want to use another font ( i dont mean 2 fonts in one time but just diffrent type) - it doesnt work. Actualy the font i want to use is <link href='https://fonts.googleapis.com/css?family=Bangers' rel='stylesheet' type='text/css'> Why it doesn't work?
  9. Ye i thought about it and i think i will use it. Thanks for any reply
  10. Ye ye i know but i said i want to use it in my local website. So how to write JS code (i know how to execute) to show that image?
  11. Ok so then what? I mean how to write JS code? I mean what function / tags use to do that (im not noob in html / js so chill ). And i'm using jQuery.
  12. Hi guys, I read that i can't load remote content for my local website but is there any solution to make this possible? For ex. i want to get gravatar from link [url=https://s.gravatar.com/avatar/0cb95b1047a5e33381d7cda457e57b51?s=80]https://s.gravatar.com/avatar/0cb95b104 ... 57b51?s=80[/url] Meybe it is possible through Lua? I mean fetchRemote Pls answer
  13. https://wiki.multitheftauto.com/wiki/CE ... ipt_to_Lua That's what i needed. Thanks Necktrox .
  14. Hi, I want to ask you is it possible to transform Lua variables to CEF? I mean i want to make some login panel using CEF but when i push for ex. login button i want to execute some Lua functions. How?
  15. Damn, thanks You are my man
  16. Works better but dxDrawImages disappeared.
  17. Hi guys I want to share with you my "passion". I'm creating video tutorials for polish community. Anyway if you want to use a code which is shown on vids - go on, no problem. Most of them are in description (pastebin). Here's my fav video from my channel. Ofc. sub welcome
  18. Fuck, ok i made it watchable now
  19. It happend to me today. I decided to make some cool GUI but i dont know why when i'm writing something its fine but if i want to delete text - it's folding ... Don't really know why. Here is video. and code local sw,sh = guiGetScreenSize() local index = 1 login = { [1] = "", [2] = "" } login.background = dxCreateRenderTarget(250,300,true) addEventHandler("onClientRender",root, function() dxDrawRectangle(0,0,sw,sh,tocolor(0,0,0,128)) dxDrawImage(sw / 2 - 250, sh / 2 - 200, 500, 100, "images/crime-industry-logo-server.png") dxSetRenderTarget(login.background) dxDrawImage(0, 0, 250, 40, "images/edit.png", 0,0,0, tocolor(255,255,255,20)) dxDrawText(login[1], 10, 0, 250, 40, tocolor(255,255,255,255), 1, "default", "left", "center") dxDrawImage(0, 42, 250, 40, "images/edit.png", 180,0,0, tocolor(255,255,255,20)) dxDrawText(login[2]:gsub("[%w%p]","*"), 10, 42, 250, 40, tocolor(255,255,255,255), 1, "default", "left", "center") dxSetRenderTarget() dxDrawImage(sw / 2 - 125, sh / 2 - 150 + 80, 250, 300, login.background) end ) addEventHandler("onClientResourceStart",root, function() showCursor(true) fadeCamera(true) showChat(false) setTime(0,0) setMinuteDuration(60000) setPlayerHudComponentVisible("all",false) setCameraMatrix(-2079.9763,315.0147,106.1571,-2080.4331,305.3169,105.7115) end ) addEventHandler("onClientCharacter",root, function(key) login[index] = login[index] .. key end ) addEventHandler("onClientKey",root, function(key,state) if key == "tab" and state == true then index = index % 2 + 1 outputChatBox(index) elseif key == "backspace" and state == true then login[index] = login[index]:sub(0, login[index]:len() - 1) end end ) Pls help.
  20. I just want to gain something like that https://camo.githubusercontent.com/75ce ... 722e6a7067 I will test that res but i remember that when i used it before i wasnt pleased.
  21. Hi, Let's master Steam. Let's go with MTA to Greenlight.
  22. I'm looking for blur shader in which i could set really high strength (i downloaded 2 from community and when i set big strength ex 100 some weird thing happens) with good effect.
  23. Od czasu zamieszczenia tego tematu tutaj kanał mój bardzo się rozwinął. Dziękuję za wsparcie i zapraszam do oglądania innych filmów na moim kanale, które już wkrótce będą się pojawiały
  24. Thanks . I will test it soon
×
×
  • Create New...