Jump to content

novo

Members
  • Posts

    325
  • Joined

  • Last visited

Everything posted by novo

  1. Well, as far I know I'm not the only one who doesn't know maths very well. By the way, I searched on the internet and I didn't understand what the people meant and that's why I came here to ask. And, the education and the respect aren't your strong suits I see.
  2. Hello, I want to create a percentage from an amout of bytes. I'm having the following code; local bytes = 0 for i,v in ipairs(clientCreate) do local bytes = bytes + fileGetSize(":"..res.."/"..v) end local percent = bytes/100 Now I want to take a % from the percent I just created by comparing, here: Lets think that the bytes is equal to 54000 B local bytes = 54000 local percent = 54000/100 local percent = 540 --% Now I want to know what % would be if I'm having 50000 B instead of 54000, 4000 B are left. I hope you understood me! Thanks in advance.
  3. setPedHeadless --https://wiki.multitheftauto.com/wiki/SetPedHeadless I recommend you to take a look to the the wiki..
  4. --Well, you can use setElementPosition(); --and then setPedSkin(); setElementModel();
  5. fxAddBlood --https://wiki.multitheftauto.com/wiki/FxAddBlood createPed --https://wiki.multitheftauto.com/wiki/createPed
  6. novo

    Image as GUI

    What are you trying to do? I think you want to insert all the windows into a table, you can do it with table.insert.
  7. Any error? Use /debugscript 3 If I'm not wrong, the problem is that you're setting a timer (line 3) on a function that isn't defined before, it's below the timer.
  8. Can you re-upload the image to another host? It can't even load for me.
  9. No, I'm checking the client downloaded files and I can't see the file I'm creating.
  10. Yes, there's a folder/resource called "resource" in my resources folder. It's a folder. It's not working for me Solid, maybe it's because I'm having the resource in [] sub-folders?
  11. Hello, I want to create a file in client-side on a defined resource (:resource/file.txt) but it's not working, here you can see my code: fileWrite says bad file pointer, the file isn't being created. local file = fileCreate(":resource/file.txt") if file then fileWrite(file, "H") fileClose(file) end Thanks in advance.
  12. novo

    tonumber?

    You can use tonumber to check if a value is numeric: local value = "text" if tonumber(value) then outputChatBox("Numeric") else outputChatBox("Not numeric") end
  13. guiGetText(stankontapd) Where stankontapd is?
  14. Post your full code, what data are you sending to "onPDZmienStan"?
  15. Yes I did, let me try on a separated resource.. I'll edit this reply with the result. EDIT: It's working fine on a separated resource.. I'm gonna try to find a solution, thank you anyway.
  16. novo

    Question - Maths

    You're re-setting value to 100. Move the variable out the function to load it once. variable = 100 setTimer( function( ) variable = ( variable > 59 and variable - 1 ) if ( guiGetText( label ) == variable ..' %' ) then guiLabelSetColor( label, 0, 255, 0 ) end end, 50, 0 )
  17. Hello, I'm having troubles with triggering client events from server-side. (Client event not found) Server: triggerEvent("loadDepend", source, arena, pickups) --# Global Server addEvent("loadDepend", true) addEventHandler("loadDepend", root, function(arena, pickups) outputChatBox("TRYING TO LOAD DEPENDENCES") triggerClientEvent(source, "loadPickups", root, pickups) end) Client: function loadPickups(pickups) outputChatBox("PICKUPS RECIEVED") end addEvent("loadPickups", true) addEventHandler("loadPickups", root, loadPickups) Thanks in advance.
  18. novo

    dxDrawText

    I told you to apply this code..
  19. novo

    dxDrawText

    Did you edit values for your Marker's X, Y, Z? You can use getElementPosition() like below. local X,Y,Z = getElementPosition(marker) --getElementPosition() will return X, Y, Z of the element called "marker"
  20. novo

    dxDrawText

    local X,Y,Z = 0, 0, 0 -- MARKER'S X,Y,Z -- Marker local XX,YY,ZZ = 2486.4111328125, -1646.0546875, 13.5 local WorldKor1, WorldKor2 = getScreenFromWorldPosition(X,Y,Z) dxDrawText("police job", WorldKor1, WorldKor2 , WorldKor1, WorldKor2, tocolor(0, 0, 0, 200), 2-(distance/20), "arial", "center", "center")
  21. Se me coló Existen los eventos.. Igualmente usa lo que te dijeron arriba
  22. Si no me equivoco, lo puedes usar para añadir el grupo del usuario en la scoreboard.
  23. Aprende a escribir tú primero antes de decirle a otro que aprenda a escribir. Sobre lo otro, coincido con El_Zorro, nadie te va a ayudar con esto.
×
×
  • Create New...