-
Posts
29 -
Joined
-
Last visited
Everything posted by Krons
-
@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.
-
I think I should try to use only one rezolution like width everywhere even on height.
-
@LilDawage not working man.
-
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:
-
Write your opinion below in comments.I am curious
-
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 .
-
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.
-
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)
-
Iei un modloader , si pui numele pe texturi ca cele originale...
-
Wow , very nice map dude!
-
Sau face un script cu shader , si le baga usor in game , si isi editeaza in mai multe moduri , dar e mai greu.
-
Da-mi aici tot scriptul , il editez si ti-l trimit.
-
Sigur ai creat un folder numit files si ai pus fisierele in el?
-
Posteaza meta-ul aici , tot ce ai in el.
-
Ai sters si din meta linia de unde citeste fisierul .col?
-
Daca texturile nu au col , nu bagi , stergi si tu functiile care baga .col
-
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!
-
Sper ca ti-a reusit , daca nu , iti voi face un model.
-
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
-
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
-
Nice job
-
[SERVER] [LCFE] Liberty City - Euphoria Freedom [RPG]
Krons replied to Simple0x47's topic in Servere
Ok , mapa ai terminat-o , adica sa ii rezolvi toate bugurile presupunand ca ai facut-o cu converter ?