Jump to content

Krons

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Krons

  1. @Dimos7 I tried that before/after you told me, ty for help but it's not working like that, anyway I think I fixed it.
  2. I think I should try to use only one rezolution like width everywhere even on height.
  3. @LilDawage not working man.
  4. Hello, I made a script in dx that is something like a square, the problem is that i made it on my resolution(1280x1024) where looks fine, but on other resolution will not be a square anymore. What I want is the dx to look like a square on all resolutions. local x, y = guiGetScreenSize() dxDrawImage(x * 0.2891, y * 0.2891, x * 0.4227, y * 0.4229, ":electric/circuitBoard.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) This is how it looks for my resolution: and this is how it looks on other resolution:
  5. Write your opinion below in comments.I am curious
  6. Use those functions setTimer( function() theVeh = getPedOccupiedVehicle(localPlayer) x, y, z = getVehicleComponentPosition( theVeh, "component") rx, ry, rz = getVehicleComponentRotation(theVeh, "component" ) setVehicleComponentPosition( theVeh, "component", x, y+0.01, z-0.01 ) end, 50, 10) You need to use coords with + and - to make it move while timer is on .
  7. Still not working , works only to set them false , but not to set them true ... Well i fixed it by creating a function , adding gui elements into it and handling it onclientguiclicked , ty anyway for help.
  8. Hello , i am working on a login panel but i cant make the gui to set visible on gui button is cliecked.No errors in debug Here's the code GUIEditor = { checkbox = {}, staticimage = {}, label = {}, button = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(0.45, 0.71, 0.10, 0.03, "Play", false) GUIEditor.label[1] = guiCreateLabel(0.41, 0.68, 0.05, 0.03, "Save", false) GUIEditor.checkbox[1] = guiCreateCheckBox(0.39, 0.68, 0.01, 0.02, "", false, false) GUIEditor.memo[1] = guiCreateMemo(0.39, 0.64, 0.22, 0.03, "Password", false) GUIEditor.memo[2] = guiCreateMemo(0.39, 0.60, 0.22, 0.03, "Username", false) GUIEditor.staticimage[1] = guiCreateStaticImage(0.27, 0.40, 0.46, 0.15, ":guieditor/images/examples/KRONSLOGOGOOD.png", true) GUIEditor.button[3] = guiCreateButton(0.2656, 0.5547, 0.10, 0.03, "Play", true) guiSetAlpha ( GUIEditor.button[3], 1 ) end ) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[3] then guiSetVisible(GUIEditor.button[1],true) guiSetVisible(GUIEditor.label[1],true) guiSetVisible(GUIEditor.checkbox[1],true) guiSetVisible(GUIEditor.memo[1],true) guiSetVisible(GUIEditor.memo[2],true) end end)
  9. Krons

    Texturi

    Iei un modloader , si pui numele pe texturi ca cele originale...
  10. Krons

    Texturi

    Sau face un script cu shader , si le baga usor in game , si isi editeaza in mai multe moduri , dar e mai greu.
  11. Krons

    Texturi

    Da-mi aici tot scriptul , il editez si ti-l trimit.
  12. Krons

    Texturi

    Sigur ai creat un folder numit files si ai pus fisierele in el?
  13. Krons

    Texturi

    Da-mi si lua-ul.
  14. Krons

    Texturi

    Posteaza meta-ul aici , tot ce ai in el.
  15. Krons

    Texturi

    Ai sters si din meta linia de unde citeste fisierul .col?
  16. Krons

    Texturi

    Daca texturile nu au col , nu bagi , stergi si tu functiile care baga .col
  17. Krons

    Texturi

    Fi atent , faci un client.lua , in el adaugi : addEventHandler('onClientResourceStart', resourceRoot, function() local txd = engineLoadTXD('files/fisierul.txd',true) engineImportTXD(txd, id) -- La id pui id-ul obiectului EX:2052 local dff = engineLoadDFF('files/fisierul.dff', 0) engineReplaceModel(dff, id) -- La id pui id-ul obiectului EX:2052 local col = engineLoadCOL('files/fisierul.col') engineReplaceCOL(col, id) -- La id pui id-ul obiectului EX:2052 engineSetModelLODDistance(id, 500) -- La id pui id-ul obiectului EX:2052 , 500 e distanta LOD end ) Dupa faci un folder numit files , in el adaugi fisierele care iti trebuie pentru a modifica .Daca le pui alt nume , sa modifici si numele la fisierul.txd / .dff / .col . Dupa creezi un Meta.xml , iar in el adaugi <?xml version="1.0"?> -<meta> <info version="1.0.0" author="Krons" name="Nume" type="script"/> <script type="client" src="client.lua"/> <file src="files/fisierul.txd"/> <file src="files/fisierul.dff"/> <file src="files/fisierul.col"/> </meta> M-am chinuit pe cat posibil sa iti amanuntesc sa intelegi ce sa faci.Sper ca ai inteles si te-am ajutat , bafta!
  18. Krons

    Texturi

    Sper ca ti-a reusit , daca nu , iti voi face un model.
  19. Krons

    Texturi

    Apropo , daca vrei sa adaugi modele de cladiri noi , si obiecte noi pe mapa , iti recomand sa folosesti si functia https://wiki.multitheftauto.com/wiki/EngineSetModelLODDistance , ca sa nu dispara obiectele dintr-o data pur si simplu.Bafta
  20. Krons

    Texturi

    Le descarci de pe net sau le convertesti singur , iar dupa le adaugi . Ca sa le adaugi va trebuii sa folosesti https://wiki.multitheftauto.com/wiki/EngineReplaceModel si https://wiki.multitheftauto.com/wiki/EngineReplaceCOL
  21. Ok , mapa ai terminat-o , adica sa ii rezolvi toate bugurile presupunand ca ai facut-o cu converter ?
×
×
  • Create New...