Jump to content

huyjvguyen

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by huyjvguyen

  1. whare your change? i don't see it??
  2. this is client: function openvipshop() if isElement(vipshop) then desroyElement(vipshop) else x,y= guiGetScreenSize() vipshop=createWindow(0, 0, x-100, y-100, "Shop Vip", true ) guiWindowSetMovable ( vipshop, true ) changenamecharacter=guiCreateButton(0.8, 0.8, 100, 200, "Change Name", true, vipshop ) showCursor(true) function onClickButton() triggerClientEvent("changenamec",getElementRoot(),changenamecharacter) showCursor(true) destroyElement(vipshop) end end addEventHandler("onClientGUIClick", doiten, onClickButton ) end bindKey ("F2", "down", openvipshop
  3. tks and what about my code for a 3d browser, it's true or not? local screenWidth, screenHeight = guiGetScreenSize() exports.webui:startUp() requestBrowserDomains{"youtube.com"} local webWindow = createWebWindow(screenWidth-800, screenHeight-480, 800, 480, "https://www.youtube.com/tv?gl=DE&hl=de#/", true) local texture = false addEventHandler("onClientRender", root, function() if not texture then texture = exports.webui:getWebWindowTexture(webWindow) end if (exports.global:isPlayerLeadAdmin(thePlayer)) then local x, y = 110.7, 1024.15 dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, texture, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) else outputChatbox("you can't use this") end end ) bindKey("b", "down", function() showCursor(not isCursorShowing()) end) addCommandHandler("d", function() exports.webui:destroyWebWindow(webWindow) end)
  4. so i will open browser in mta and request this domain fbcdn.net.?
  5. oh, so why my browser can connect facebook,hmm so tired
  6. yes, i see a server make browser can connect some page have javascript
  7. Hmm. I use default webbrowser by mta 1.5. and it's not work with facebook. Can you show me how to fix it? I was request domain facebook.com
  8. hello, i try to make a browser, it can connect page mtasa.com, youtube, but it's not work with facebook or some page have jvscript. sombody can help me add jvscipt for browser
  9. what wrong in my script, it's not load page. client: local screenWidth, screenHeight = 1000,1000 local webBrowser = createBrowser(screenWidth, screenHeight, true, false) function webBrowserRender() local x, y = 1580.0498046875,1768.4404296875 dxDrawMaterialLine3D(x, y, 23.25, x, y, 10.8203125, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "http://youtube.com") addEventHandler("onClientRender", root, webBrowserRender) end ) server: addEventHandler("onPlayerLogin", root, function() requestBrowserDomains({"youtube.com", "google.com", "facebook.com"}) end )
  10. but i don't know what faction can help me show my createBrowser wtih 3d?? can you teach me, please
  11. hello, i tried to make a simple but it's not work. Somebody help me please!. client: local webBrowser = createBrowser(1200, 675) addCommandHandler("youtube", function() browserLoadURL(webBrowser, "https://www.youtube.com/watch?v=kdemFfbS5H0") addEventHandler("onClientRender", root, function() -- Update texture data updateBrowser(webBrowser) -- We can simply draw the webbrowser now since it is a standard DirectX texture local x, y = 110.7, 1024.15 dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end ) end ) server: -- Ask the player after login addEventHandler("onPlayerLogin", root, function() requestWebPages({"youtube.com", "google.com", "myservername.com"}) end this script can createBrowser 3d but can't load video
  12. i copy your code and replace into my code but ??
  13. i can't see my fails, can you tell me?? Enargy?
  14. script to change name with Vcoins with mysql! gui_c.lua -- bam nút F5 để mở shop vcoin function F5(player,commandName) bindKey(player,"F5","down",VcoinShopWindow) end addCommandHandler("bindme",F5) function unF5( player,commandName ) unbindKey(player,"F5","down",VcoinShopWindow) end --bang shop Vcoins function VcoinShopWindow(theplayer) local x=0.5 local x=0.5 local cao="100" local rong="200" bangshop = guiCreateWindow(x,y,rong,cao,"Vcoin Shop VnR",true) nutdoiten = guiCreateButton(0.1,0.1,50,50,"đổi tên nhân vật",true,WindowShop) guiSetVisible(VcoinShopWindow,false) if (VcoinShopWindow ~=nil) then guiSetVisible(VcoinShopWindow,true) showCursor(true) else outputChatBox("không thể mở shop Vcoin, có lổi xảy ra, hãy liên hệ với admin Hy nhé.!",theplayer) end if (button="left" and state="up") then guiSetVisible(bangshop,false) else outputChatBox("lổi, hãy báo lại cho admin Hy",theplayer) end addEventHandler("onClientGUIClick", nutdoiten, doiten,false) end addCommandHandler("vcoinshop",root,VcoinShopWindow) -- bang doi ten function doiten(player,button,state) bangdoiten = guiCreateWindow(0.5,0.5,100,50,"Nhập tên muốn đổi",true) editdoiten = guiCreateEdit(0.5,0.5,25,25,"",true,bangdoiten) giadoiten = guiCreateLabel(0.5,0.35,20,20,"100Vcoins",bangdoiten) guiEditSetMaxLength(editdoiten,255) buttondoiten = guiCreateButton(0.5,0.5,20,15,"Đổi tên",true,bangdoiten) guiSetVisible(bangdoiten,true) guiSetInputEnabled(true) showCursor(true) if (button="left" and state="up") then showCursor(false) guiSetVisible(bangdoiten,false) if editdoiten then triggerServerEvent("submitdoiten",getRootElement(),editdoiten) outputChatBox("Đang xử lí") end else outputChatBox("có lổi xảy ra trong quá trình xử lí đổi tên, hãy thông báo với admin Hy",player) end else outputChatBox("lổi, hãy báo lại cho admin Hy",player) end end end submit_s.lua function batdaudoiten(editdoiten,theplayer) ketnoidatabase = dbConnect("mysql","dbname=db;host=localhost","root","","share=0") Vcoins = dbExec(ketnoidatabase,"SELECT*FROM accounts WHERE Vcoins") if (Vcoins>=100) then local price = Vcoins - 100 layVcoins = dbExec(ketnoidatabase,"UPDATE ?? SET ?? = ?",accounts,Vcoins,price) setname = dbExec(ketnoidatabase, "UPDATE ?? SET ?? = ?", characters, charactername,editdoiten) if (layVcoins,setname) then outputChatBox("bạn đã đỏi tên thành công") end else outputChatBox("có lổi xảy ra trong quá trình đổi tên, hãy báo lổi với admin Hy",theplayer) end end else outputChatBox("bạn không đủ Vcoins để đổi tên! hãy ra forums nạp Vcoins nhé",theplayer) end end addHanler("submitdoiten",true) addEventHandler("submitdoiten",root,batdaudoiten) meta <meta> <info author="Hy" version="1.0.0" type="script" name="ShopVcoins" description="bán vật phẩm vip" /> <script src="gui_c.lua" type="client" /> <script src="submit_s.lua" type="server" /> <!-- The Exports --> <export function="query"/> <export function="querySingle"/> <export function="exec"/> <export function="free"/> </meta>
  15. i don't know where to start. can you give me a example script about custom money. money name is "coin". with mysql
  16. both! give me Facebook or yahoo, gmail.
  17. huyjvguyen

    help mysql

    sorry! I just participated in the forum should not know! you can yahoo or facebook me, I want to ask you to help is not
  18. huyjvguyen

    help mysql

    hello! I'm Jackson, I am from Vietnam name. I am doing a roleplay server. I encountered a minor difficulty, which is when I select a column in the database. then how can I do it the value in that column appeared on the screen of the client. help me please! for example: I have a database on roleplay and have a table that has one column coin player. So when I use: db = dbConnect ("mysql", "dbname = roleplay; host =" localhost "," username "," password "," share = 1 ") [/ code]then I have to use dbquery how and how to print it on the screen of the client.?
  19. hello! I'm Jackson, I am from Vietnam name. I am doing a roleplay server. I encountered a minor difficulty, which is when I select a column in the database. then how can I do it the value in that column appeared on the screen of the client. help me please! for example: I have a database on roleplay and have a table that has one column coin player. So when I use: db = dbConnect ("mysql", "dbname = roleplay; host =" localhost "," username "," password "," share = 1 ") [/ code]then I have to use dbquery how and how to print it on the screen of the client.?
×
×
  • Create New...