Jump to content

King12

Members
  • Posts

    437
  • Joined

  • Last visited

Posts posted by King12

  1. On 05/03/2024 at 20:56, Nico834 said:

    Until now, there was a bug that allowed the serial to be changed. Recently, this error was fixed by Dutchman, and the changed serials were changed back to the original ones. You have nothing to do, just enjoy playing MTA.

    i didn't know about that, but just launched mta today and still have the new serial.

  2. hi, i have had the same system for a long time. few days ago i relaunched the game and my serial number changed. could you please assist me with swapping it back?

    my new serial is: 26709E3960F64E13D031B8FEDB70EE53

    my old serial is: F5A03854B9FB94E781BA8654449542A1

     

    this is the 2nd time this thing happened to me. (note: i asked here before and got it back)

  3. 12 hours ago, ccw said:

    I don't think setMoonSize(0) removes the moon and stars

    If the stars and moon was removed via a custom timecyc.dat, then that will no longer work

     

    Actually they weren't showing before the update (even with a default timecyc.dat), but now they do. There has to be an option to enable/disable them.

  4. 10 hours ago, ccw said:

    A recent update included blocking customised timecyc.dat

    Do you use a custom timecyc.dat ?

    I don't know about the thread poster, but I tried installing a fresh GTA:SA and they still appear.

  5. On 19/07/2019 at 22:53, ccw said:

    Do you use a custom timecyc.dat ?

    This happened after recent updates. I see some stars, and the moon too.

  6. Hello there,

    I don't know what is wrong but my vps isn't allowing clients to download files such as [map scripts, songs etc..]

    HTTP server file mismatch (freeroam) fr_client.lua [Got size:57088 MD5:A2FADFBEAEC9C87916AA217E82E8DEAC, wanted MD5:92D420578F6D170C6796A5F70FBA4A6D]
    Download error: HTTP server file mismatch (freeroam) fr_client.lua [Got size:57088 MD5:A2FADFBEAEC9C87916AA217E82E8DEAC, wanted MD5:92D420578F6D170C6796A5F70FBA4A6D]
    
    
    Download error: Error downloading requested files. HTTP response code said error. [The requested URL returned error: 404 Not Found] [music.mp3]

    All ports are opened (obviously). Also, files are unzipped and cached inside resource-cache.

     

    Server IP: 95.156.228.8:69

  7. -- Client side
    
    setPlayerHudComponentVisible ( "crosshair", false )
    -- or this to hide every HUD component
    setPlayerHudComponentVisible ( "all", false )

     

  8. 1 hour ago, Justin|X5| said:

    Idk.

    I even replaced the default .TXD with a transparent .PNG and it won't disappear it just goes white.
    So long story short, I think the actual parachute canopy ID is 3060 but it doesn't work when replacing.
    And the parachute backpack is ID 371.
    I was gonna suggest turning the default parachute transparent and using AttachElements but, since it remains white you're out of luck.
    You can currently change the shaders of the default canopy and that's it.
    If I'm not mistaken, the guy in the video has CLEO mod installed.
    Capture.png
    paracx.txd
    para.png
    Maybe the .DFF is named something weird, but I couldn't find anything, idk man.
    Since shaders allow you to change them according to names instead of ID's, as far as I know this is all you've got.mta_screen_2017_12_26_18_58_45.png

    It's the fact that I want to replace the dff model of the canopy itself, and I actually tried a shader to make the parachute disappear but failed, since I really don't know anything about shaders. As you can see sometimes it disappears and sometimes not.

    SULQuxrCQl2VSv1__rqoJg.png

     

    bh0UvZ_-R4mHhxC7uj1WoQ.png

     

    struct PSInput 
    { 
        float4 Diffuse      : COLOR0; 
    }; 
      
    float4 PixelShaderFunction( PSInput PS ) : COLOR0 
    { 
        float4 color = PS.Diffuse; 
        
        color.a = 0; 
        
        return color; 
    } 
      
    technique 
    { 
        pass p0 
        { 
            AlphaBlendEnable    = TRUE; 
            DestBlend           = INVSRCALPHA; 
            SrcBlend            = SRCALPHA; 
            PixelShader         = compile ps_2_0 PixelShaderFunction(); 
        } 
    } 

     

    • Like 1
  9. In order to poll the password you have to do it this way:

    SERV_LAUNCH_PW = exports.db:sqlQuery("SELECT server_launch_pw FROM server_vars")
    
    local result = dbPoll (SERV_LAUNCH_PW, -1)
    if #result > 0 then
      local password = SERV_LAUNCH_PW[1].server_launch_pw;
      outputChatBox(password)
    end

    for the dbPoll, you can try this:

    -- use the database connection variable in (connection).
    
    function _Query (...)
    	if connection then
    		local queryS = dbQuery(connection, ... )
    		local result = dbPoll(queryS,-1)
    		return result 
    	else
    		return false
    	end
    end
    
    -- Usage:
    local SERV_LAUNCH_PW = _Query ('SELECT server_launch_pw FROM server_vars')
      if ( #SERV_LAUNCH_PW > 0 ) then
      	local password = SERV_LAUNCH_PW[1].server_launch_pw;
      	outputChatBox(password)
      end

     

    • Thanks 1
  10. 14 hours ago, Justin|X5| said:

    I downloaded this and it seems to be no different from any other model replacement, if you know the .TXD for the default parachute you should have the model ID.
    So try replacing it the same as you would with a vehicle model DFF and TXD.

    The problem is, I couldn't find the dff ID for the parachute canopy (or something that changes it).

  11. GUIEditor = { label = {}, window = {}, edit = {}, staticimage = {} }
    
    addEventHandler("onClientResourceStart", resourceRoot,
        function()
            GUIEditor.staticimage[1] = guiCreateStaticImage(0.22, -0.02, 0.55, 0.99, "images/news.png", true)
            guiSetVisible(GUIEditor.staticimage[1],false)
            GUIEditor.staticimage[2] = guiCreateStaticImage(0.17, 0.03, 0.67, 0.97, "images/hand.png", false, GUIEditor.staticimage[1])
            GUIEditor.edit[1] = guiCreateEdit(46, 36, 308, 22, "", false, GUIEditor.window[1])
        end
    )
    
    
    
    addEventHandler("onClientGUIClick", resourceRoot,
    	function()
    		if source == GUIEditor.staticimage[2] then
    			setTimer(triggerServerEvent, 1000 * tonumber(guiGetText(GUIEditor.edit[1])) or 1000, 1, "send", localPlayer)
    		end
    	end
    )
    addEvent("send",true)
    addEventHandler("send",getRootElement(),
    function ()
        local x,y,z = getElementPosition ( client )
    	createExplosion ( x,y,z,0 )
        createExplosion ( x,y,z,0 )
    end)

     

  12. Just now, Wormen said:

    هل ذا فيه أخطاء 
     

    
    addEvent("send",true)
    addEventHandler("send",getRootElement(),
    function ()
        local x,y,z = getElementPosition ( source )
    	createExplosion ( x,y,z,0 )
        createExplosion ( x,y,z,0 )
    end)
    

    لن أنا بحط رقم ما يصير شييء في الدي بق 
    ولا يحصل أنفجار حتي

    أنت ماعرفت ال source

    من راح يكون عليه الانفجار؟

  13. 1 minute ago, Wormen said:
    
    WARNING: bomb/client:4: Bad usage @ 'setTimer' [Interval is below 50]
    

    نفس المشكلة

    GUIEditor = { label = {}, window = {}, edit = {}, staticimage = {} }
    
    addEventHandler("onClientResourceStart", resourceRoot,
        function()
            GUIEditor.staticimage[1] = guiCreateStaticImage(0.22, -0.02, 0.55, 0.99, "images/news.png", true)
            guiSetVisible(GUIEditor.staticimage[1],false)
            GUIEditor.staticimage[2] = guiCreateStaticImage(0.17, 0.03, 0.67, 0.97, "images/hand.png", false, GUIEditor.staticimage[1])
            GUIEditor.edit[1] = guiCreateEdit(46, 36, 308, 22, "", false, GUIEditor.window[1])
        end
    )
    
    
    
    addEventHandler("onClientGUIClick", resourceRoot,
    	function()
    		if source == GUIEditor.staticimage[2] then
    			setTimer(triggerServerEvent, 1000 * tonumber(guiGetText(GUIEditor.edit[1])) or 1, 1, "send", resourceRoot)
    		end
    	end
    )
    
    -- server side
    addEvent("send", true)
    addEventHandler("send", resourceRoot,
      function ()
        -- blabla..
      end
    )

    التايمر يبدأ من 50 جزء من الثانية وأنت تحط رقم 1, صححت الكود بحيث أنه لو حطيت رقم 1 راح يخليه ثانيه وكذا..

  14. 4 minutes ago, Wormen said:

    ي أخي أقولك يجيب التايمر من edit
    -_-

     

    ما أنتبهت لكلامك, تفضل:

    GUIEditor = { label = {}, window = {}, edit = {}, staticimage = {} }
    
    addEventHandler("onClientResourceStart", resourceRoot,
        function()
            GUIEditor.staticimage[1] = guiCreateStaticImage(0.22, -0.02, 0.55, 0.99, "images/news.png", true)
            guiSetVisible(GUIEditor.staticimage[1],false)
            GUIEditor.staticimage[2] = guiCreateStaticImage(0.17, 0.03, 0.67, 0.97, "images/hand.png", false, GUIEditor.staticimage[1])
            GUIEditor.edit[1] = guiCreateEdit(46, 36, 308, 22, "", false, GUIEditor.window[1])
        end
    )
    
    
    
    addEventHandler("onClientGUIClick", resourceRoot,
    	function()
    		if source == GUIEditor.staticimage[2] then
    			setTimer(triggerServerEvent, tonumber(guiGetText(GUIEditor.edit[1])) or 100, 1, "send", resourceRoot)
    		end
    	end
    )
    
    -- server side
    addEvent("send", true)
    addEventHandler("send", resourceRoot,
      function ()
        -- blabla..
      end
    )

     

  15. -- Client side
    
    addEventHandler("onClientResourceStart", resourceRoot,
        function()
            window1 = guiCreateWindow(509, 175, 311, 452, "Revive Panel", false)
            guiWindowSetSizable(window1, false)
    		guiSetVisible( window1 ,false)
            gridlist = guiCreateGridList(13, 26, 288, 341, false, window1)
            guiGridListAddColumn(gridlist, "Players", 0.9)
            Button1 = guiCreateButton(17, 379, 139, 63, "Revive Player", false, window1)
            Button2 = guiCreateButton(166, 379, 135, 63, "Close", false, window1) 
            guiGridListClear(gridlist)		
        end
    )
    
    addCommandHandler('rp',
    function ()
    guiSetVisible(window1,not guiGetVisible(window1))
    showCursor(guiGetVisible(window1))
    changeGridListToPlayers ( gridlist, 1 )
    end
    )
    
    -- Close button
    addEventHandler ( "onClientGUIClick",root,
    function ()  
    if (source == Button2) then
    guiSetVisible( window1 ,false)
    showCursor(false)
       end
    end
    )
    
    -- Health button
    addEventHandler ( "onClientGUIClick", resourceRoot,
    function ()  
    if (source == Button1) then
    	local gRow, gColumn = guiGridListGetSelectedItem ( gridlist )
    	if gRow >= 0 then
        local PlayerName = guiGridListGetSelectedItemText ( gridlist )
    	local target = getPlayerFromName(PlayerName)
    	triggerServerEvent("onPlayerHealed", resourceRoot, target)
    	guiSetVisible( window1 ,false)
    	showCursor(false)
    	else
    	outputChatBox("Select a player to heal!", 0, 255, 0)
       end
       end
    end)
    
    
    
    -- [[ Useful functions ]] --
    
    function guiGridListGetSelectedItemText ( gridList, column )
        local item = guiGridListGetSelectedItem ( gridList )
        
        if item then
            return guiGridListGetItemText ( gridList, item, column or 1 )
        end
    
        return false
    end
    
    function changeGridListToPlayers ( gridlist, column )
      	if type ( column ) == 'number' and type ( range ) == 'number' and getElementType ( gridlist ) == 'gui-gridlist' then
        	guiGridListClear ( gridlist )
            for i,v in ipairs ( getElementsByType ( 'player' ) ) do
          		 if ( v ~= localPlayer ) then
                        local row = guiGridListAddRow ( gridlist )
    					return guiGridListSetItemText ( gridlist, row, column, getPlayerName ( v ), false, false )
    			 end
      		end
    	else
    	return false
    	end
    end

     

    -- Server side.
    
    addEvent("onPlayerHealed", true)
    addEventHandler("onPlayerHealed", resourceRoot,
    function (target)
      if isElement (target) then
    	outputChatBox( getPlayerName(target) .. " has been healed.", client, 0, 255, 0)
    	setElementHealth( target, 100 )
      end
    end)

     

    • Like 1
×
×
  • Create New...