xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Hello guys, if i upload a car mod file into a resource on the server, and i use "fetchRemote" on the client side, can i use it like how the "downloadFile" function will be used? or will i have to upload the car mod file to a web server?
-
Are you saying, you want to donate to the MTA team, via PSN, or MTA on PSN?
-
First of all, use "[lua]" tag, not pastebin.... Ingame, use the command /debugscript 3 (If you havn't already.) I think it will have to do something with the .col files, and not the script.
-
This is how i would script it: client: amount = 0 function text() dxDrawText(amount, 0, 0, 1000, 1000) end t = {} addEvent("onPlayerGetMoney", true) addEventHandler("onPlayerGetMoney", root, function (a) if (a) then addEventHandler("onClientRender", root, text) amount = a t[localPlayer] = setTimer( function () amount = 0 removeEventHandler("onClientRender", root, text) end, 5000, 1 ) end end ) server: addCommandHandler("money", function (p) givePlayerMoney(p,1000) triggerClientEvent(p,"onPlayerGetMoney",p,1000) end )
-
use: /debugscript 3 to find what is wrong with it...
-
If i where you, i would just use this resource: https://community.multitheftauto.com/index.php?p= ... ls&id=3016
-
So, did u make the resource? or stolen or something?
-
Hello guys, i just had a basic idea for the MTA community site. I think that if you are the maker of a resource, you can get the direct file path on the MTA community website, so that you can use a script to get the resource.... I just had this idea, to make stuff easier for scripts to make an automatic update script or something, so that your resource and directly download it... Thanks for reading. Here is what i mean:
-
Thank you
-
Hi guys, i've been trying, but i cannot keep this stupid ped to keep dancing in mid air. Anyone know? ped = createPed(math.random(0,216), -1095, 336.2, 20.5) setPedAnimation(ped, "DANCING", "dnce_m_b") setElementFrozen(ped,true)
-
Not really sure what is whats wrong with it, but i added "SAPD" to it, if thats what you wanted... local myGate1 = createObject ( 8378, 2575.009765625, -2111.7705078125, 1.4876279830933, 0, 0, 0 ) local marker = createMarker( 2582.3000488281, -2111.6000976563, -5.5, "cylinder", 15, 255, 255, 255, 0) addEventHandler ( "onMarkerHit", marker, function ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then if ( getElementData ( hitElement, "gang") == "FBI_" )or (( getElementData ( hitElement, "gang") == "SAPD" )) then moveObject ( myGate1, 2500, 2575, -2111.8000488281, -9.3999996185303 ) end end end ) addEventHandler ( "onMarkerLeave", marker, function ( leftElement ) if ( getElementType ( leftElement ) == "player" ) then if ( getElementData ( leftElement, "gang" ) == "FBI_" ) or (getElementData(leftElement,'gang')=="SAPD") then moveObject ( myGate1, 2500, 2575.009765625, -2111.7705078125, 1.4876279830933 ) end end end )
-
This code should work. vehicleTable = { {462, -2458.33398, 779.5, 34.842, 0, 0, 90, "1"}, {462, -2463, 774.5, 34.842, 0, 0, 0, "2"}, {462, -2464.5, 774.5, 34.842, 0, 0, 0, "3"}, {462, -2466, 774.5, 34.842, 0, 0, 0, "4"}, {462, -2472, 774.5, 34.842, 0, 0, 0, "5"}, {462, -2473.5, 774.5, 34.842, 0, 0, 0, "6"}, {462, -2467.5, 774.5, 34.842, 0, 0, 0, "7"}, {462, -2478, 774.5, 34.842, 0, 0, 0, "8"}, {462, -2470.5, 774.5, 34.842, 0, 0, 0, "9"}, {462, -2476.5, 774.5, 34.842, 0, 0, 0, "10"}, {462, -2475, 774.5, 34.842, 0, 0, 0, "11"}, {462, -2469, 774.5, 34.842, 0, 0, 0, "12"}, {462, -2479.5, 774.5, 34.842, 0, 0, 0, "13"}, {462, -2481, 774.5, 34.842, 0, 0, 0, "14"}, {462, -2482.5, 774.5, 34.842, 0, 0, 0, "15"}, {462, -2484, 774.5, 34.842, 0, 0, 0, "16"}, {462, -2485.5, 774.5, 34.842, 0, 0, 0, "17"}, {462, -2458.33398, 790, 34.842, 0, 0, 90, "18"}, {462, -2458.33398, 785.5, 34.842, 0, 0, 90, "19"}, {462, -2458.33398, 784, 34.842, 0, 0, 90, "20"}, {462, -2458.33398, 781, 34.842, 0, 0, 90, "21"}, {462, -2458.33398, 782.5, 34.842, 0, 0, 90, "22"}, {462, -2458.33398, 787, 34.842, 0, 0, 90, "23"}, {462, -2458.33398, 788.5, 34.842, 0, 0, 90, "24"}, {462, -2458.33398, 791.5, 34.842, 0, 0, 90, "25"}, {462, -2458.33398, 793, 34.842, 0, 0, 90, "26"}, {462, -2458.33398, 794.5, 34.842, 0, 0, 90, "27"}, {462, -2458.33398, 796, 34.842, 0, 0, 90, "28"}, {462, -2495.17603, 779, 34.842, 0, 0, 270, "29"}, {462, -2495.17603, 780.5, 34.842, 0, 0, 270, "30"}, {462, -2495.17603, 782, 34.842, 0, 0, 270, "31"}, {462, -2495.17603, 783.5, 34.842, 0, 0, 270, "32"}, {462, -2495.17603, 785, 34.842, 0, 0, 270, "33"}, {462, -2495.17603, 786.5, 34.842, 0, 0, 270, "34"}, {462, -2495.17603, 788, 34.842, 0, 0, 270, "35"}, {462, -2495.17603, 789.5, 34.842, 0, 0, 270, "36"}, {462, -2495.17603, 791, 34.842, 0, 0, 270, "37"}, {462, -2495.17603, 792.5, 34.842, 0, 0, 270, "38"}, {462, -2495.17603, 794, 34.842, 0, 0, 270, "39"}, {462, -2492.5, 796, 34.842, 0, 0, 180, "40"}, {462, -2491, 796, 34.842, 0, 0, 180, "41"}, {462, -2489.5, 796, 34.842, 0, 0, 180, "42"}, {462, -2488, 796, 34.842, 0, 0, 180, "43"}, {462, -2486.5, 796, 34.842, 0, 0, 180, "44"}, {462, -2485, 796, 34.842, 0, 0, 180, "45"}, {462, -2483.5, 796, 34.842, 0, 0, 180, "46"}, {462, -2482, 796, 34.842, 0, 0, 180, "47"}, {462, -2480.5, 796, 34.842, 0, 0, 180, "48"}, {462, -2479, 796, 34.842, 0, 0, 180, "49") } vehicle = {} for i,v in ipairs (vehicleTable) do local id, x, y, z, rx, ry, rz, _ = unpack(v[i]) vehicle[i] = createVehicle(id, x, y, z, rx, ry, rz) end
-
outputChatBox( "#F08080[TERRITÓRIOS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." Dominou o território LeeR Home!", player, 0, 255, 0, true )
-
Not really sure, because i've never used "string.find," but try this: team = createTeam ( "KekZ|", 10, 200, 0 ) } function clan() name = getPlayerName ( source ) if (string.find ( name, getTeamName(team) ) ) then setPlayerTeam ( source, team ) end end addEventHandler ( "onPlayerJoin", getRootElement(), clan)
-
Umm, what exactly are you trying to do here?
-
Wrong. function unwanted () if getPlayerTeam(getTeamName(source)) == getTeamFromName("Squards") then setPlayerWantedLevel( source,0 ) end end addEventHandler ( "onPlayerSpawn", root, unwanted )
-
If your trying to put it in the middle: function mydx() local width,height = 479, 241 local rx, ry = guiGetScreenSize() local x,y = (rx/2-width/2), (ry/2-height/2) dxDrawText(nick, x, y, width, height , tocolor(255, 255, 255, 255), 2.00, "default-bold", "left", "top", false, false, false, true, true) -- (rx/2-width/2), (ry/2-height/2) end You'll have to adjust it until the width and height are pretty exact.
-
Nice job, keep up the excellent work!
-
Well, you can make the game mode work on "getElementData," such as: setElementData(player,"gamemode","deathmatch",true) then in the gamemode, you can check to see if the element's "gamemode" data is "deathmatch" before it does any functions...
