Jump to content

Hydra

Members
  • Content Count

    163
  • Joined

Community Reputation

38 Good

3 Followers

About Hydra

  • Rank
    Busta
  • Birthday 13/06/2003

Details

  • Gang
    Vultaic
  • Location
    Romania
  • Occupation
    Scripting
  • Interests
    -

Recent Profile Visitors

1,389 profile views
  1. for money and skin you can use setAccountData, getAccountData, setElementData & getElementData. For faction better use database(db) https://wiki.multitheftauto.com/wiki/setAccountData https://wiki.multitheftauto.com/wiki/GetAccountData https://wiki.multitheftauto.com/wiki/SetElementData https://wiki.multitheftauto.com/wiki/GetElementData https://wiki.multitheftauto.com/wiki/Database
  2. using interpolateBetween Small example: local abc = false local alpha = 0 local tick = 0 function d() if abc then alpha = interpolateBetween(0, 0, 0, 255, 0, 0, (tick-getTickCount())/2500, "Linear") else alpha = interpolateBetween(255, 0, 0, 0, 0, 0, (tick-getTickCount())/2500, "Linear") end dxDrawRectangle(screenW * 0.2000, screenH * 0.3000, screenW * 0.0600, screenH * 0.0600, tocolor(255, 0, 0, alpha), false) end addEventHandler("onClientRender", root, d) function anim() if not animState then animState = true abc = true else animState = fals
  3. setElementPosition(localPlayer, x-yourValue, y, z+0.5) ex
  4. You can use engineApplyShaderToWorldTexture and make client -> server -> client to be visible for others too
  5. set an element data for that group and use this: function a() if getElementData(localPlayer, "ClanName") then -- do something here else outputChatBox("You are not allowed to use this command", 255, 0, 0) end end addCommandHandler("abc1", a)
  6. Try reset your binds from MTA Settings
  7. You use the same variable for all of them, try using something like dff1, dff2, txd1, txd2 etc..
  8. Hydra

    Screen Size

    mostly at x and y
  9. Hydra

    Screen Size

    Yes it's possible to do that with rectangle too
  10. local myMarker = createMarker(0, 0, 5, "cylinder", 1.5, 255, 255, 255, 255, getRootElement()) function a(hitElement, matchingDimension) if hitElement == source then killPed(hitElement) else end end addEventHandler("onPlayerMarkerHit", myMarker, a) Is this what you want?
  11. Hydra

    Screen Size

    For text to be good positioned I use this: local screenW, screenH = guiGetScreenSize() resW = screenW/1600 --(put your resolution here instead of 1600) resH = screenH/900 --(put your resolution here instead of 900) function a() dxDrawText("asd", screenW * 0.2000, screenH * 0.3000, screenW * 0.0350, screenH * 0.0350, tocolor(255, 255, 255, 255), 1.00*resW, "bankgothic", "left", "top", false, false, false, false) end -- I put *resW on the text scale
  12. onClientVehicleDamage or onVehicleDamage
  13. Use the resource texture_names to see the blips texture name, create all blips on the map in different positions and that's it
×
×
  • Create New...