Jump to content

thisdp

Scripting Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. thisdp

    [Question] Arrow

    local calcule_hp = (screenW * 0.9114) + (hp / 100 * screenW * 0.0805) - (screenW - 2995 * 0.9070 / 2) Improve this. There will be problems with different resolutions.
  2. First create a txt file with UTF-8 Encoding. Then copy the text into it. I think it is caused by utf8 head.
  3. It is because I didn't understand him.
  4. #str string.len(str) utf8.len(str) which one will you choose?
  5. thisdp

    isTimer bug ?

    Because timer is not an element. isElement(timer) always returns false.
  6. Maybe you will like it.
  7. Hi everybody , dgs dx memo will released in the next version. Maybe the end of this month.
  8. Thank you all the same. But listen bro, I am just want to make some contributions to MTA. I don't accept any donation materially. Instead, you use it and give me the response to your feeling. This is the best donation to me.
  9. Added Check Box. use /updatedgs to update to the latest version. See Update Log : http://angel.mtaip.cn:233/dgsUpdate
  10. You must read wiki : https://wiki.multitheftauto.com/wiki/OnClientDgsDxMouseClick This is different from onClientGUIClick Both Press and Release will be detected.
  11. thisdp

    how to do?

    function onBuyHouse(player) local acc = getPlayerAccount(player) if acc and not isGuestAccount(acc) then setAccountData(acc,"houseCoolTime",getRealTime().timestamp) end end function isInBuyHouseCoolTime(player) local acc = getPlayerAccount(player) if acc and not isGuestAccount(acc) then local time = getAccountData(acc,"houseCoolTime") or 0 local currentTime = getRealTime().timestamp if currentTime-time <= 3600 then return true end return false end end
  12. Can't do it now XD. But you can create a label above the edit.
  13. You can use image. But it requires dgsDxGUISetProperty. And turbid? If you want to let the image blur, you should make a shader (.fx file). If you just want to set its alpha smoothly, use dgsAlphaTo.
  14. Give me the screenshot --[[Easing Type can be found through the function such as getEasingValue or others.]] DGS:dgsMoveTo(dxgui,targetX,targetY,Relative,false,EasingType,timeMS) -- This works fine. DGS:dgsMoveTo(dxgui,targetX,targetY,Relative,true,EasingType,speedX,speedY) -- I think this is buggy. DGS:dgsSizeTo(dxgui,targetW,targetH,Relative,false,EasingType,timeMS) -- This works fine. DGS:dgsSizeTo(dxgui,targetW,targetH,Relative,true,EasingType,speedX,speedY) -- I think this is buggy. DGS:dgsAlphaTo(dxgui,targetAlpha,false,EasingType,timeMS) -- This works fine. DGS:dgsAlphaTo(dxgui,targetAlpha,true,EasingType,speed) -- I think this is buggy.
×
×
  • Create New...