
King12
Members-
Posts
439 -
Joined
-
Last visited
-
Days Won
1
King12 last won the day on March 10
King12 had the most liked content!
Details
-
Gang
-ffs-
Recent Profile Visitors
2,826 profile views
King12's Achievements

Hustler (26/54)
6
Reputation
-
I wasn't paying attention to that part in the wiki, It's working now. Thank you!
-
Hi, I'm trying to POST data of mapName, adminName and action. The php code is receiving the POST when I use Postman but not it doesn't receive anything from mta. I'm missing something? -- Function to get currently running map resource function getCurrentMapResource() for _, res in ipairs(getResources()) do if getResourceState(res) == "running" and getResourceInfo(res, "type") == "map" then return res end end return nil end -- Verify admin rights function isAdmin(player) if not isElement(player) then return false end local account = getPlayerAccount(player) return account and isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Admin")) end -- Send HTTP request to PHP to move the map folder function sendMoveRequest(mapName, action, player) local url = "http://localhost/move_map.php" local postData = toJSON({ mapName = mapName, action = action, adminName = getAccountName(getPlayerAccount(player)) }) -- Debugging: Output the JSON data being sent outputDebugString("Sending JSON data: " .. postData) fetchRemote(url, { method = "POST", headers = { ["Content-Type"] = "application/json" }, postData = postData }, function(responseData, responseInfo) -- Debugging: Output response details outputChatBox("Response Data: " .. tostring(responseData), player, 255, 0, 0) outputChatBox("Response Info: " .. toJSON(responseInfo, true), player, 255, 0, 0) if responseInfo.success and responseInfo.statusCode == 200 then local responseTable = fromJSON(responseData) if responseTable and responseTable.success then outputChatBox("Map " .. action .. "ed successfully!", player, 0, 255, 0) stopResource(getResourceFromName(mapName)) refreshResources() else outputChatBox("Failed to " .. action .. " map: " .. tostring(responseTable.message), player, 255, 0, 0) end else outputChatBox("HTTP request failed. Status code: " .. tostring(responseInfo.statusCode), player, 255, 0, 0) end end) end -- Handle map acceptance/declination function manageCurrentMap(action, player) if not isAdmin(player) then outputChatBox("Access denied!", player, 255, 0, 0) return end local currentMap = getCurrentMapResource() if not currentMap then outputChatBox("No map currently running!", player, 255, 0, 0) return end local mapName = getResourceName(currentMap) sendMoveRequest(mapName, action, player) end -- Command handlers addCommandHandler("accept", function(player) manageCurrentMap("accept", player) end) addCommandHandler("decline", function(player) manageCurrentMap("decline", player) end) I'm getting these responses in debug: Response Data: {"success":false,"message":"Missing required fields: adminName, action, mapName","receivedData":[{"adminName":"lego","mapName":"-dm-3bady-vol3-the-nature-essence","action":"accept"}]} Failed to accept map: Missing required fields: adminName, action, mapName
-
i didn't know about that, but just launched mta today and still have the new serial.
-
I'm still waiting for an answer. It seems random to me @Azmoon.
-
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)
-
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.
-
I don't know about the thread poster, but I tried installing a fresh GTA:SA and they still appear.
-
This happened after recent updates. I see some stars, and the moon too.
-
Posted the same issue a year ago and it didn't get any attention, looks like this one will be the same.
-
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_
-
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
-
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.
-
-- Client side setPlayerHudComponentVisible ( "crosshair", false ) -- or this to hide every HUD component setPlayerHudComponentVisible ( "all", false )
-
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(); } }