thisdp

Members
  • Content Count

    437
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by thisdp

  1. DGS Supports GUI TO DGS Now and still under testing: https://wiki.multitheftauto.com/wiki/G2D
  2. https://wiki.multitheftauto.com/wiki/OnDgsElementScroll
  3. Maybe video tag is broken for some reason. 我也活跃于官方discord
  4. The same problem as DGS media browser. It works in ancient MTA version....
  5. Give you a like for your efforts😋
  6. make the gas pump as object (removeWorldObject and createObject) amd then use https://wiki.multitheftauto.com/wiki/SetObjectBreakable
  7. I am afraid that it is an unsolvable question with only object. First, there is no way to get the texture from an object by position. Second, we can not get the texture from an object even you know which face of the object the mouse clicks without analyzing the dff file. But you can store the texture data in a table ....
  8. thisdp

    How to fix it?

    https://wiki.multitheftauto.com/wiki/SetNearClipDistance
  9. thisdp

    Need help

    addEventHandler("onClientRender",root,function() local _,_,playerRotation = getElementRotation(localPlayer) local cameraRotation = 360 - getPedCameraRotation(localPlayer) local cameraRad = math.rad(cameraRotation) local playerRad = math.rad(playerRotation) local includedAngle = math.cos(cameraRad-playerRad) local angleSymbol = math.sin(cameraRad-playerRad) if includedAngle < 0 then cameraRotation = playerRotation + 90*(angleSymbol > 0 and 1 or -1) setPedCameraRotation(localPlayer,cameraRotation) end end) Better to use cos/sin to solve this problem
  10. Get their handling and make some math calculations..
  11. Refer to the vehicles that have such feature, like elegy and supergt
  12. maybe you just make 0 mass? But this will make vehicle have low inertance.
  13. Before editing handlings, you need to make a lot of test, and record some data. After finishing the tests, you will find the answer. no
  14. turn mass always larger than mass..
  15. You can refer to vehicle original handling by: https://wiki.multitheftauto.com/wiki/GetOriginalHandling or use hedit(Handling editor) https://community.multitheftauto.com/index.php?p=resources&s=details&id=3716
  16. Poperties and values available are listed on wiki :https://wiki.multitheftauto.com/wiki/setVehicleHandling
  17. use a table or setElementData to record who was muted. before canceling event, check whether the source player is muted.
  18. thisdp

    [HELP] Text

    Don't worry too much about the performance, everything drops fps. DGS is alternative. Based on dx. https://wiki.multitheftauto.com/wiki/Resource:Dgs
  19. thisdp

    GUI MEMO. HELP

    Absolute position = Relative position * Parent size If there is no parent, parent size will be screen size. For example, My resolution is 1920x1080, dgsCreateWindow(0.5,0.5,0.2,0.2,"test",true) The relative position of window is x:0.5, y:0.5 The absolute position of window is x:960, y:540 ( x:1920*0.5, y:1080*0.5 ) The relative size of window is x:0.2, y:0.2 The absolute size of window is x:384, y:215 ( x:1920*0.2, y:1080*0.2 )
  20. thisdp

    GUI MEMO. HELP

    If you can not endure bugs of cegui, there is an alternative dx lib. https://wiki.multitheftauto.com/wiki/DgsCreateMemo https://wiki.multitheftauto.com/wiki/DgsMemoSetWordWarpState
  21. dxGetTextWidth/bounding box width
  22. thisdp

    [help]Radiation

    Someone makes script for you means that you should pay for it. And it is difficult for you to know whether he made a back door in the script. For security, why not learn script by yourself, since you decided to build a server.
  23. newEnv = {} setmetatable(newEnv,{__index=_G}) local fnc = loadstring(code) if fnc then setfenv(fnc,newEnv) fnc() end Maybe this can be better for new enviroment