Jump to content

ysj4

Members
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ysj4

  1. ysj4

    table with svg

    Hi can someone help me? local data = { ["roundedRectangle"] = {svgCreate(400, 200, "assets/media/roundedRectangle.svg")}, } addEventHandler("onClientRender", root, function() dxDrawImage(sX / 2 - 200 * size, sY / 2 - 100 * size, 400 * size, 200 * size, data["roundedRectangle"], 0, 0, 0, tocolor(255, 255, 255), false) end) so on 5 argument i got warrning about expected material, got table, how to solved this?
  2. ysj4

    Nametags

    It is possible to make nametags with cef?
  3. ysj4

    math floor problem

    yeah but my problem with getScreenFromWorldPosition its for nametags and when my character get teleported far away then i got that problem
  4. local wX, wY = getScreenFromWorldPosition(bX, bY, bZ + 0.35) local sX, sY = math.floor(wX), math.floor(wY) bX, bY, bZ its a pedBone position problem its a with wX idk why
  5. ysj4

    CEF Issues

    fixed, thanks for @vicisdev
  6. ysj4

    CEF Issues

    check private message
  7. ysj4

    CEF Issues

    1. when i start my resource with my website only black background shows, its ok because i set dark background in CSS. But JS UI doesnt show's up (debug nothing shows) 2. starting with inspect output 3. page of mta doesnt shows up https://imgur.com/a/dlfGLNE
  8. ysj4

    CEF Issues

    I think my files its ok, but UI still not load. https://imgur.com/a/rhj4n5c (dont look at auth_server type, its my fault)
  9. ysj4

    CEF Issues

    hello so i created a website based on javascript UI, when i load CEF in MTA, UI doesn't show up, don't know why, all files in meta.xml are typed my code; local screenWidth, screenHeight = guiGetScreenSize() local page = "http://mta/mywebsite/index.html" local initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, false, false) local theBrowser = guiGetBrowser(initBrowser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page) showCursor(true) end ) my code in HTML head <script type="text/javascript" src="js/myUI.js"></script>
×
×
  • Create New...