Jump to content

CapY

Members
  • Posts

    1,646
  • Joined

  • Last visited

Everything posted by CapY

  1. txt = dxText:create("", 0.8205, 0.2266, true) txt2 = txt:text("Area:\n"..playerZoneName1..", "..playerZoneName ) txt:scale(1.20) txt:font("arial") txt1:postGUI(true)
  2. CapY

    HELP!!!

    Capy just tell how :@ Here: function showClientImage() guiCreateStaticImage( 20, 200, 100, 100, "imagename.png", false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) Get it, you had it on guiCreateStaticImage button. -.-"
  3. I already tried it with setTimer and it didn't worked, text was just messed up.
  4. CapY

    HELP!!!

    If you mean on importing images to the server, use : https://wiki.multitheftauto.com/wiki/Gui ... taticImage and then don't forget to include it in meta. "imagename.png" /> Make sure it's in .png format.
  5. I did it and still nothing.. -.- txt = dxText:create("", 0.8205, 0.2266, true) txt:text("Area:\n"..playerZoneName1..", "..playerZoneName ) Neither this. txt = dxText:create("", 0.8205, 0.2266, true) txt2 = txt:text("Area:\n"..playerZoneName1..", "..playerZoneName )
  6. Then use onClientPlayerWasted -.-
  7. So dxText:create is not like onClientRender ?
  8. Yea, good job solidsnake Always you are right. Well you have to do that server sided and don't use getLocalPlayer() func. or triggerServerEvent, right? triggerClientEvent*
  9. This lib is a bit buggy. function createText1 ( ) local playerX, playerY, playerZ = getElementPosition( getLocalPlayer() ) -- Get player's coordinates. local playerZoneName = getZoneName( playerX, playerY, playerZ, false ) -- Get name of the player's zone. local playerZoneName1 = getZoneName( playerX, playerY, playerZ, true ) -- Get name of the player's zone. txt = dxText:create("Area:\n"..playerZoneName1..", "..playerZoneName, 0.8205, 0.2266, true) txt:scale(1.20) txt:font("arial") txt1:postGUI(true) txt1 = dxText:create("Area:\n"..playerZoneName1..", "..playerZoneName, 0.8205, 0.2266, true) txt1:scale(1.22) txt1:color(0,0,0,255) txt1:font("arial") end It doesn't updates the dxText(txt), while with "dxDrawText" worked perfectly!
  10. Why my PC starts to lagg like a hell when i just write this dxText:create("Area:\n"..playerZoneName1..", "..playerZoneName, 0.7805, 0.2266, true) dxText:scale(1.20) dxText:font("arial") "playerZoneName1" and "playerZoneName" are defined earlier in the code. And this is handled with onClientRender, so what's the problem of that massive lag ?
  11. If you want to hide your vehicle, use setElementAlpha : https://wiki.multitheftauto.com/wiki/SetElementAlpha
  12. Try to add initScreen_Label = {} initScreen = {} initScreen_LoginForm_usernameInput = {} initScreen_LoginForm_passwordInput = {} Before welcomeForm function.
  13. CapY

    Wiki

    Neznam sve(niko nije savrsen.), ali znam vecinu...
  14. CapY

    Wiki

    Moj problem nije naucit scriptat(kada vec znam ), moj cilj je samo prevest Wiki(sa nekim/a) za one koji ne razumiju Engleski ni malo.
  15. CapY

    Dobrodosli

    Vidim da bas ne pratite subforum, pa evo vam link : https://forum.multitheftauto.com/viewtop ... 4d14aad005
  16. Client side is yours, but Server side is not.
  17. CapY

    just a question

    He's drunk for sure. EDIT: If you want to change your ped alpha, use this resource : https://community.multitheftauto.com/index.php?p= ... ls&id=1704
×
×
  • Create New...