-
Posts
857 -
Joined
-
Last visited
Everything posted by Blaawee
-
function togglarbic(text) if text == "kill" then guiSetText( "انتحآر" ) else guiSetText( "kill" ) if text == "skin" then guiSetText( "شخصيآت" ) else guiSetText( "skin" ) end end end addEventHandler ( "onClientClick", getRootElement(), togglarbic ) so thats what i did
-
all want to make add two languages in the freeroam
-
i want to make to languages in the freeroam game mode here is what i did : function togglarbic(text) if text == "kill" then guiSetText( "انتحآر" ) else guiSetText( "kill" ) if text == "skin" then guiSetText( "شخصيآت" ) else guiSetText( "skin" ) end end end addEventHandler ( "onClientClick", getRootElement(), togglarbic ) and i put a 'chk' {'chk', id='Arbic', onclick=togglarbic}
-
thx Solid Thats working 100%
-
you mean like this : ----------------------- --Show Country ----------------------- exports.scoreboard:addScoreboardColumn('Country') Tabel={ ["IT"]={"Italy"}, ["MX"]={"Mexico"}, ["SA"]={"SAUDI ARBIA"}, ["EG"]={"EGYPT"} } function showHome () local Home = unpack(Tabel[flag]) setElementData(source,"Country",Home) end addEventHandler("onPlayerJoin",getRootElement(),showHome) and how make it work the outChatBox like this Blaawee has joined the game , and he is from [his county]
-
can you show an example
-
thx guys that's work fine i'm gona move the img to right littl bit
-
i got : failed to call "admin:getPlayerCountry [srting "?"] what if i make it : call(getResourceFromName("admin"), "getPlayerCountry", source) samething ><
-
what if his country flag not in the admin panel ?
-
you mean like this : exports.scoreboard:addScoreboardColumn("countryCode", getRootElement(), 16, 16) the img already in the scoreboard with size 16×16
-
hi guys i found an old scoreboard and there was this line : elseif column.name == "countryCode" then if content ~= "N/A" then local countryImage = "flags/"..string.lower(content)..".png" dxDrawImage(topX+theX, y+s(1)-2, 16, 16, countryImage,0,0,0,tocolor( 255,255,255,255 ), true) end all i wana to do to make it work , what is the right to do
-
Solidsnake thx but i think what i did is work too , i tested with another objects and it's work fine n.v.m i'll try to do it EDIT: i think the problame was the .txd and .dff files ><
-
Here is my script : addEventHandler("onClientResourceStart", getRootElement(), function (rsc) if (rsc == getThisResource()) then aveo = engineLoadTXD("aveo/555.txd") engineImportTXD(aveo, 555) aveodff = engineLoadDFF("aveo/555.dff", 555) engineReplaceModel(aveodff, 555) camry5 = engineLoadTXD("Camry2005/507.txd") engineImportTXD(camry5, 507) camry5dff = engineLoadDFF("Camry2005/507.dff", 507) engineReplaceModel(camry5dff, 507) camry10 = engineLoadTXD("camry2010/436.txd") engineImportTXD(camry10, 436) camry10dff = engineLoadDFF("camry2010/436.dff", 436) engineReplaceModel(camry10dff, 436) ford = engineLoadTXD("Ford/547.txd") engineImportTXD(ford, 547) forddff = engineLoadDFF("Ford/547.dff", 547) engineReplaceModel(forddff, 547) shnaper = engineLoadTXD("shnaper/579.txd") engineImportTXD(shnaper, 579) shnaperdff = engineLoadDFF("shnaper/579.dff", 579) engineReplaceModel(shnaperdff, 579) lexus5 = engineLoadTXD("Lexus/550.txd") engineImportTXD(lexus5, 550) lexus5dff = engineLoadDFF("Lexus/550.dff", 550) engineReplaceModel(lexus5dff, 550) lexus2 = engineLoadTXD("Lexus/492.txd") engineImportTXD(lexus2, 492) lexus2dff = engineLoadDFF("Lexus/492.dff", 492) engineReplaceModel(lexus2dff, 492) bmw = engineLoadTXD("BMW/527.txd") engineImportTXD(bmw, 527) bmwdff = engineLoadDFF("BMW/527.dff", 527) engineReplaceModel(bmwdff, 527) camry2 = engineLoadTXD("Camry2002/426.txd") engineImportTXD(camry2, 426) camry2dff = engineLoadDFF("Camry2002/426.dff", 426) engineReplaceModel(camry2dff, 426) ddsn = engineLoadTXD("ddsn/546.txd") engineImportTXD(ddsn, 546) ddsndff = engineLoadDFF("ddsn/546.dff", 546) engineReplaceModel(ddsndff, 546) hly = engineLoadTXD ("hly/479.txd") engineImportTXD (hly, 479) hlydff = engineLoadDFF ("hly/479.dff", 479) engineReplaceModel (hlydff, 479) antra = engineLoadTXD ("ANTRA/560.txd") engineImportTXD (antra, 560) antradff = engineLoadDFF ("ANTRA/560.dff", 560) engineReplaceModel (antradff, 560) aorion = engineLoadTXD ("aorion/445.txd") engineImportTXD (aorion, 445) aoriondff = engineLoadDFF ("aorion/445.dff", 445) engineReplaceModel (aoriondff, 445) end end )
-
yes when i stoped the replace script the crashing has been stoped
-
hi guys i upgrade my server to 1.2 version but it's keep crashing allot i think it's from my replaceing script is there any bug about the replacing the txd and dff ??
-
Awsome ,graete , nice Job +1
-
thx TAPL it's work
-
if you allready created the teams just put this : setTeamFriendlyFire(eJraM, false) setTeamFriendlyFire(MaFia, false) No i'm Not
-
Lol, why are you using "exports" and "call" together ? Edit: Show us the "toggleEditor" function too. o.k i'll use the : exports.hedit:toggleEditor() about the hole code chake the hedit resource in : hedit\handlers\menu\subMenu i want trigger it to open the other resource windows
-
how can i run resource from an other resource i got this : function openHedit() exports.hedit:toggleEditor() call ( getResourceFromName ( "hedit" ), "toggleEditor") end and debug says : failed to call toggleEditor [string"?"]
