Jump to content

Seeroy

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Seeroy's Achievements

Square

Square (6/54)

1

Reputation

  1. Hello. Is there a way to get a photo of the map that can be used in the radar if my map is made in the MTA map editor from separate custom objects (dff, txd and col for every object) and output to .map format
  2. Hello. I have a problem with my CEF, my interface is not clickable. Input with keyboard working, but clicks not working. My code in onClientRender if (browserVisible == true) then dbw = dxDrawImage(posX, posY, windowWidth, windowHeight, webBrowser, 0, 0, 0, tocolor(255, 255, 255, 245), true) focusBrowser(webBrowser) end Browser showing code if (getPedOccupiedVehicleSeat(localPlayer) == 0) then browserVisible = true showCursor(true) guiSetInputEnabled(true) showChat(false) focusBrowser(webBrowser) end This is my onClientBrowserCreated code addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, url) addEventHandler("onClientKey", getRootElement(), function(button) if button == "mouse_wheel_down" then injectBrowserMouseWheel(webBrowser, -40, 0) elseif button == "mouse_wheel_up" then injectBrowserMouseWheel(webBrowser, 40, 0) end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if state == "down" then injectBrowserMouseDown(webBrowser, button) else injectBrowserMouseUp(webBrowser, button) end end) addEventHandler("onClientCursorMove", getRootElement(), function(relativeX, relativeY, absoluteX, absoluteY) injectBrowserMouseMove(webBrowser, absoluteX, absoluteY) end) end)
  3. OK, thanks for answer. I'll upload the video a little later. But the problem is that there is no problem in another editor on the same map. I, seeing the problem in my editor, sent the map to a friend, he opened it in his editor, and all objects were normally deleted in his editor.
  4. Hello. I have my map, created in the map editor. I am removing default map objects using script, then i placing new objects. But i can't remove this new objects, they seem to be removed, but the textures remain. Can you help me?
  5. Hi. I have my map, created in MTA Map Editor (.map file), but editor is so laggy, and i want edit my map in 3ds Max. How i can convert .map to .ipl for importing in 3ds Max? Or i can do it without converting? And how i can export back my map from 3ds Max to .map file? Thank you
  6. Thank you, but this func is need to be synced through clients and server Wow, thank you! I`ll try it!
  7. Hello. How I can add new car models (not replacing existing) to MTA server. I can modify server and client too. Thank you
  8. I fixed this. In this code 3 argument replace false to true) Before: local webBrowser = createBrowser(screenWidth, screenHeight, false, false) After: local webBrowser = createBrowser(screenWidth, screenHeight, true, false) This argument means: isLocal
  9. Hello. I`m writing login/register plugin using CEF. But i cant load local page to WebBrowser (but, for example, i can load youtube.com) My code local screenWidth, screenHeight = guiGetScreenSize() local webBrowser = createBrowser(screenWidth, screenHeight, false, false) function webBrowserRender() dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "http://mta/local/web/index.html") addEventHandler("onClientRender", root, webBrowserRender) end ) Thank you
×
×
  • Create New...