King12

Members
  • Content Count

    432
  • Joined

  • Last visited

Community Reputation

5 Neutral

2 Followers

About King12

  • Rank
    Thug

Details

  • Gang
    -ffs-

Recent Profile Visitors

1,495 profile views
  1. King12

    MTA Loading Delay

    Posted the same issue a year ago and it didn't get any attention, looks like this one will be the same.
  2. King12

    MTA Loading Delay

    Hello there, I've been facing this issue for roughly 2 years, but never cared about it, and it's getting a bit annoying now. The problem is, that my game takes 30 seconds to start and load correctly. Also, I always get this message when the game starts. http://prntscr.com/l3n1n3 MTADiag: https://pastebin.mtasa.com/297658147 PML: https://upload.mtasa.com/u/148387134/Logfile.PML_
  3. 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
  4. addEventHandler("onClientResourceStart", resourceRoot, function() setPlayerHudComponentVisible( "crosshair", false ) end ) and for the meta: <meta> <script src="client.lua" type="client"/> </meta> It's better to have the resource on a separate folder, I don't recommend adding it to editor gamemode.
  5. -- Client side setPlayerHudComponentVisible ( "crosshair", false ) -- or this to hide every HUD component setPlayerHudComponentVisible ( "all", false )
  6. 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. 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(); } }
  7. 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
  8. The problem is, I couldn't find the dff ID for the parachute canopy (or something that changes it).
  9. local gRow = guiGridListGetSelectedItem ( gridlist1 ) if gRow >= 0 then -- player selected something else end guiGridListGetSelectedItem will return -1 for Row if an item wasn't selected.
  10. Hello there, I have looked everywhere but couldn't find anything. Does anyone have an idea about the parachute canopy dff model ID? or a way to replace it instead of .png shaders?
  11. This is the dump file, if you are interested. https://upload.mtasa.com/u/329386214/client_1.5.5-release-11790.1.000_core_0001d53e_5_CPxMb_00000000_55F3_4A8_F5A03_20171222_0454.zip_
  12. Hello there, lately I've been facing an annoying issue with my client, it takes like 30-60 seconds to startup the game. It started happening after I installed Corsair Utility Engine (A tool to control your keyobard). My MTADiag: https://pastebin.mtasa.com/366419670
  13. 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)
  14. أنت ماعرفت ال source من راح يكون عليه الانفجار؟
  15. 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 راح يخليه ثانيه وكذا..