-
Posts
451 -
Joined
-
Last visited
Everything posted by ZeyadGTX
-
Hmm why it doesn't replace the Default Hud i can see 2 huds
-
can't you help me with script !
-
can you explain with script ?
-
Hello i have this script which saves team when quit but the problem is : i kicked some one from The Team when he reconnect again he joins the Team Automatic i want it saves if the player in Team or not because when i kick my self from the team when i reconnect i join the team again automatic function setTeam() local account = getPlayerAccount(source) -- gets players account local team = getAccountData (account, "team") -- gets players team if (team) and getTeamFromName(team) then setPlayerTeam(source, getTeamFromName(team)) -- sets players team end end addEventHandler("onPlayerLogin",root,setTeam) -- sets players team on login function save() local team = getPlayerTeam(source) -- Gets the players team local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then -- Checks to see if the player is a guest or not setAccountData(account, "team", getTeamName(team)) --saves team end end addEventHandler("onPlayerQuit", getRootElement(), save) -- saves team on quit
-
I have this script it makes you get team color but the problem that you should reconnect is there way to avoid reconnecting i know some servers works perfectly in it but with another script For Example Team name Forever color red when i add my self in it my nametag color or blip and the Playercolor isn't red you should reconnect i want to avoid this function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end local blip = {} addEventHandler("onPlayerLogin", root, function () if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) else outputChatBox("", source) rr,gg,bb = unpack(randomColor[math.random(#randomColor)]) setBlipColor(blip[source], rr,gg,bb,255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(rr,gg,bb))) setPlayerNametagColor(source, rr,gg,bb) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end )
-
https://community.multitheftauto.com/index.php?p= ... ls&id=9603 He just Changed The language viewtopic.php?f=108&t=72706
-
really ?? and you stole it from my client Files Motherfuckerr
-
-___________________________________________- well , where is your brain later you will see
-
I promised Grafu that i won't and iam learning scripts for that i will make my own You will See and pls ask Before Talking
-
yeah taking it from my client files
-
Guys i had Problem In Killmessage i killed some one by Hynter Or Hydra why it shows like that in Pic ? Can some one tell me what to use Or What To Edit i can do any thing please help ? it should Draw Hunter Image and Hydra image if i killed by hunter or hydra , and i have the hunter and hydra images Hunter.png , 520.png (HYDRA)
-
Hello I have added Pagani Zonda in my server but the file has 4 paint Jobs for the Car the Car id Is 562 (Elegy) Iwant to add Paint Jobs what script do i use this ?? i need script to replace TXD paintjobs txd = engineLoadTXD ( "paintjob1.txd" ) engineImportTXD ( txd, 562 ) )
-
Can some one help me with Fighting Style ? i made that but when i click on it nothing happens ?? Please Help it won't take 5 mins fr_client -------------------------- -- Fighting style window --------------------------- wndFighting = { 'wnd', text = 'Set Fighting style', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='fighting', width=230, height=290, columns={ {text='style', attr='name'} }, rows={xml='fighting.xml', attrs={'name'}}, expandlastlevel=false, onitemdoubleclick=applyFightingStyle }, {'btn', id='Set', onclick=applyFightingStyle}, {'btn', id='Close', closeswindow=true} } } addCommandHandler('setstyle', function(cmd, style) style = style and tonumber(style) if style then server.setPedFightingStyle(g_Me, style) end end ) fighting.xml type="style">
-
Hey i would like to add fighting style in F1 i searched Some topics and websites but i didn't find help i want to add fighting style in F1 which allow you to choose your fighting style , i click on it but nothing does help ! fighting.xml type="style"> i added it into meta [lua]"fighting.xml" type="client" /> [/lua] fr_client --------------------------- -- Fighting style window --------------------------- wndFighting = { 'wnd', text = 'Set Fighting style', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='fighting', width=230, height=290, columns={ {text='Fighting', attr='name'} }, rows={xml='fighting.xml', attrs={'name'}}, expandlastlevel=false, onitemdoubleclick=applyAnimation }, {'btn', id='Set', onclick=applyFightingstyle}, {'btn', id='Close', closeswindow=true} } } addCommandHandler('setstyle', function(cmd, style) style = style and tonumber(style) if style then server.setPedFightingStyle(g_Me, style) end end ) fr_server setPedFightingStyle = { option = 'setstyle', descr = 'Setting fighting style' },
-
NIkolai look at my Upload i said its Castillo's i just edited it OmG
-
Hey guys iam adding Walking Styles in F1 but i have problem i click on the walking style but nothing does , should i add any thing in fr_server ? my Fr_client --------------------------- -- Walking Style Window --------------------------- function applyStyle(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndWalking, 'style') if not leaf then return end end server.setPedWalkingStyle(g_Me, true) end function stopStyle() server.setPedWalkingStyle(g_Me, false) end wndWalking = { 'wnd', text = 'Walking', width = 240, x = -25, y = 0.3, controls = { { 'lst', id='style', width=230, height=290, columns={ {text='Walking', attr='name'} }, rows={xml='walking.xml', attrs={'name'}}, expandlastlevel=false, onitemdoubleclick=applyStyle }, {'btn', id='set', onclick=applyStyle}, {'btn', id='stop', onclick=stopStyle}, {'btn', id='close', closeswindow=true} } } addCommandHandler('style', function(command, lib, name) server.setPedWalkingStyle(g_Me, true) end ) i added Walking.Xml in meta "walking.xml" type="client" /> my walking styles type="walkingstyle"> "MOVE_DEFAULT" id="0" /> "MOVE_PLAYER" id="54" /> "MOVE_PLAYER_F" id="55" /> "MOVE_PLAYER_M" id="56" /> "MOVE_ROCKET" id="57" /> "MOVE_ROCKET_F" id="58" /> "MOVE_ROCKET_M" id="59" /> "MOVE_ARMED" id="60" /> "MOVE_ARMED_F" id="61" /> "MOVE_ARMED_M" id="62" /> "MOVE_BBBAT" id="63" /> "MOVE_BBBAT_F" id="64" /> "MOVE_BBBAT_M" id="65" /> "MOVE_CSAW" id="66" /> "MOVE_CSAW_F" id="67" /> "MOVE_CSAW_M" id="68" /> "MOVE_SNEAK" id="69" /> "MOVE_JETPACK" id="70" /> "MOVE_MAN" id="118" /> "MOVE_SHUFFLE" id="119" /> "MOVE_OLDMAN" id="120" /> "MOVE_GANG1" id="121" /> "MOVE_GANG2" id="122" /> "MOVE_OLDFATMAN" id="123" /> "MOVE_FATMAN" id="124" /> "MOVE_JOGGER" id="125" /> "MOVE_DRUNKMAN" id="126" /> "MOVE_BLINDMAN" id="127" /> "MOVE_SWAT" id="128" /> "MOVE_WOMAN" id="129" /> "MOVE_SHOPPING" id="130" /> "MOVE_BUSYWOMAN" id="131" /> "MOVE_SEXYWOMAN" id="132" /> "MOVE_PRO" id="133" /> "MOVE_OLDWOMAN" id="134" />4 "MOVE_FATWOMAN" id="135" /> "MOVE_JOGWOMAN" id="136" /> "MOVE_OLDFATWOMAN" id="137" /> "MOVE_SKATE" id="138 " />
-
like that ? there is bug addEventHandler("onResourceStart",resourceRoot, function(resource) local players = getElementsByType("player") for i,player in ipairs(players) do bindKey(player,"F4","down",showGui) end end) addEventHandler("onPlayerJoin",root, function() bindKey(source,"F4","down",showGui) end)
-
Hey i have this Script Which allow me to buy Hydra or Hunter or WeaponsSkills but i have problem that i can't make F6 Bind For it Server Side addEvent ("viewGUI", true) function showGui (hitPlayer, matchingDimension) triggerClientEvent ("viewGUI", hitPlayer) end addCommandHandler("shop",showGui) addEvent ("weapBuy", true) addEventHandler ("weapBuy", getRootElement(), function(id, cost, name, ammo) if (getPlayerMoney (source) >= tonumber(cost)) then outputChatBox ("#006400You Bought A : #FFFFFF" .. name, source, 255, 255, 255, true) outputChatBox ("#006400ID: #FFFFFF" .. id, source, 255, 255, 255, true) outputChatBox ("#006400Costs #FFFFFF" .. cost, source, 255, 255, 255, true) takePlayerMoney (source, tonumber (cost)) giveWeapon(source, tonumber(id),1000) else outputChatBox ("#006400You Don't Have Enough #FFFFFFMoney", source, 255, 255, 255, true) end end) addEvent ("carBuy", true) addEventHandler ("carBuy", getRootElement(), function(id2, cost2, name2,x, y, z, sRz) if (getPlayerMoney (source) >= tonumber(cost2)) then outputChatBox ("#006400You Bought A : #FFFFFF" .. name2, source, 255, 255, 255, true) outputChatBox ("#006400ID: #FFFFFF" .. id2, source, 255, 255, 255, true) outputChatBox ("#006400Costs: #FFFFFF" .. cost2, source, 255, 0, 0, true) takePlayerMoney (source, tonumber (cost2)) local x,y,z = getElementPosition (source) local vehicle = createVehicle (id2, x, y, z, 0, 0, sRz ) warpPedIntoVehicle(source, vehicle) else outputChatBox ("#006400You Don't Have Enough #FFFFFFMoney", source, 255, 255, 255, true) end end) function vExplode () toggleVehicleRespawn ( source, false ) setTimer(destroyElement, 5000, 1, source) end addEventHandler ( "onVehicleExplode", getResourceRootElement(getThisResource()), vExplode ) function skillButton (id, cost) if (id == "0") then skillBuyPlayer (250,source,69) elseif (id == "1") then skillBuyPlayer (50000,source,70) elseif (id == "2") then skillBuyPlayer (50000,source,71) elseif (id == "3") then skillBuyPlayer (50000,source,72) elseif (id == "4") then skillBuyPlayer (50000,source,73) elseif (id == "5") then skillBuyPlayer (50000,source,74) elseif (id == "6") then skillBuyPlayer (50000,source,75) elseif (id == "7") then skillBuyPlayer (50000,source,76) elseif (id == "8") then skillBuyPlayer (50000,source,77) elseif (id == "9") then skillBuyPlayer (50000,source,78) elseif (id == "10") then skillBuyPlayer (50000,source,79) elseif (id == "11") then skillBuyPlayer (50000,source,24) elseif (id == "12") then skillBuyPlayer (50000,source,23) elseif (id == "13") then skillBuyPlayer (50000,source,21) end end addEvent ("skillBuy", true) addEventHandler ("skillBuy", getRootElement(),skillButton) function skillBuyPlayer (cash,player,id) if (getPlayerMoney (player) >= cash) then takePlayerMoney (player,cash) setPedStat(player, id, 1000) else outputChatBox ("#006400You Don't Have Enough #FFFFFFMoney", 255, 255, 255, true) end end i tried this bind but not working bindKey("F6", "down", showGui)