Search the Community

Showing results for tags 'fail'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 5 results

  1. Client side: function showPlayerFuel() hidePlayerFuel(true); fuelFrame = guiCreateStaticImage( 0.72, 0.79, 0.05, 0.20, "images/Fuel_Gage.png", true) fuelBar1 = guiCreateStaticImage( 0.742, 0.811, 0.021, 0.17, "images/Fuel_Dot.png", true) guiBringToFront ( fuelFrame ) end addEvent("FullTank", true ) addEventHandler("FullTank", resourceRoot, showPlayerFuel) addEvent("fullRefill", true) addEventHandler("fullRefill",resourceRoot, showPlayerFuel) addEvent("fuelGageShow", true) addEventHandler("fuelGageShow", resourceRoot, showPlayerFuel) function CurrentFuelIn ( currentFuel ) local sizex = currentFuel["sizex"] local sizey = currentFuel["sizey"] local posx = currentFuel["posx"] local posy = currentFuel["posy"] hidePlayerFuel(true); fuelBar1 = guiCreateStaticImage( tonumber(posx), tonumber(posy), tonumber(sizex), tonumber(sizey), "images/Fuel_Dot.png", true) fuelFrame = guiCreateStaticImage( 0.72, 0.79, 0.05, 0.20, "images/Fuel_Gage.png", true) if(posy and posy > 0.9) then if not warningdot1 then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) end if((Posy or 0) >= 0.981) then setVehicleEngineState(getPedOccupiedVehicle(localPlayer),false) else outputChatBox("-- You Are Quite Low On Fuel | Refuel at Area 69", 255, 50, 50, true) playSoundFrontEnd(4) end end end addEvent("CurrentFuel", true) addEventHandler("CurrentFuel", resourceRoot, CurrentFuelIn) function startExit ( vehicle,seat ) if seat == 0 and fuelBar1 then local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local fTbl = {} fTbl.sizex = x fTbl.sizey = y fTbl.posx = Posx fTbl.posy = Posy triggerServerEvent('onGetFuel',vehicle,fTbl) hidePlayerFuel() if(fuelTimer) then killTimer(fuelTimer) fuelTimer = false; end end end addEventHandler("onClientPlayerVehicleExit", localPlayer, startExit ) function vehEntered ( veh,seat ) if seat == 0 and isElement(fuelBar1) then local Posx, Posy = guiGetPosition ( fuelBar1, true ) if(Posy and Posy >= 0.981) then setVehicleEngineState(veh,false) end end if(isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end fuelTimer = setTimer ( decFuel1, 2000, 0) end addEventHandler("onClientPlayerVehicleEnter", localPlayer, vehEntered ) function decFuel1() local PlayerInCar = getPedOccupiedVehicle( getLocalPlayer() ) if (PlayerInCar and getVehicleController(PlayerInCar) == localPlayer and not isPedDead(localPlayer) ) then if(not fuelBar1) then showPlayerFuel(); return; end local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local NewY,NewPosY if not Posy then return end if((isElementWithinColShape(localPlayer,safeZone) or isElementWithinSafeArea(localPlayer)) and Posy > 0.812) then NewY = y + 0.009 NewPosY = Posy - 0.009 if(warningdot1) then destroyElement(warningdot1) warningdot1 = nil playSoundFrontEnd(1) end elseif(Posy < 0.981) then local velo = getActualVelocity( PlayerInCar ) local val = (velo < 5 and 0) or (velo < 100 and 0.0007) or 0.0010 -- 6 / 9 NewY = y - val NewPosY = Posy + val if(Posy and (Posy > 0.885 and Posy < 0.95) and not warningdot1) then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) playSoundFrontEnd(4) outputChatBox("Your vehicle tank is about to run out.", 255, 100, 100); end elseif (Posy >= 0.981 and getVehicleEngineState(PlayerInCar)) then setVehicleEngineState(PlayerInCar,false) callServerFunction('setVehicleEngineState',PlayerInCar,false) end if(NewY) then guiSetSize(fuelBar1, x, NewY, true) end if(NewPosY) then guiSetPosition(fuelBar1, Posx, NewPosY, true ) end elseif(fuelTimer) then hidePlayerFuel() end end function hidePlayerFuel(bDontDestroyTimer) if(fuelFrame) then destroyElement(fuelFrame) fuelFrame = nil; end if(fuelBar1) then destroyElement(fuelBar1) fuelBar1 = nil; end if(warningdot1) then destroyElement(warningdot1); warningdot1 = nil; end if(not bDontDestroyTimer and isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end end addEvent("jacked", true ) addEventHandler("jacked", resourceRoot, hidePlayerFuel ) function getActualVelocity( element ) if(element) then x,y,z = getElementVelocity(element) end return math.sqrt(x^2 + y^2 + z^2) * 161 end Server side: function startExit ( vehicle,seat ) if seat == 0 and fuelBar1 then local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local fTbl = {} fTbl.sizex = x fTbl.sizey = y fTbl.posx = Posx fTbl.posy = Posy triggerServerEvent('onGetFuel',vehicle,fTbl) hidePlayerFuel() if(fuelTimer) then killTimer(fuelTimer) fuelTimer = false; end end end function vehEntered ( veh,seat ) if seat == 0 and isElement(fuelBar1) then local Posx, Posy = guiGetPosition ( fuelBar1, true ) if(Posy and Posy >= 0.981) then setVehicleEngineState(veh,false) end end if(isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end fuelTimer = setTimer ( decFuel1, 2000, 0) end function decFuel1() local PlayerInCar = getPedOccupiedVehicle( getLocalPlayer() ) if (PlayerInCar and getVehicleController(PlayerInCar) == localPlayer and not isPedDead(localPlayer) ) then if(not fuelBar1) then showPlayerFuel(); return; end local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local NewY,NewPosY if not Posy then return end if((isElementWithinColShape(localPlayer,safeZone) or isElementWithinSafeArea(localPlayer)) and Posy > 0.812) then NewY = y + 0.009 NewPosY = Posy - 0.009 if(warningdot1) then destroyElement(warningdot1) warningdot1 = nil playSoundFrontEnd(1) end elseif(Posy < 0.981) then local velo = getActualVelocity( PlayerInCar ) local val = (velo < 5 and 0) or (velo < 100 and 0.0007) or 0.0010 -- 6 / 9 NewY = y - val NewPosY = Posy + val if(Posy and (Posy > 0.885 and Posy < 0.95) and not warningdot1) then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) playSoundFrontEnd(4) outputChatBox("Your vehicle tank is about to run out.", 255, 100, 100); end elseif (Posy >= 0.981 and getVehicleEngineState(PlayerInCar)) then setVehicleEngineState(PlayerInCar,false) callServerFunction('setVehicleEngineState',PlayerInCar,false) end if(NewY) then guiSetSize(fuelBar1, x, NewY, true) end if(NewPosY) then guiSetPosition(fuelBar1, Posx, NewPosY, true ) end elseif(fuelTimer) then hidePlayerFuel() end end function hidePlayerFuel(bDontDestroyTimer) if(fuelFrame) then destroyElement(fuelFrame) fuelFrame = nil; end if(fuelBar1) then destroyElement(fuelBar1) fuelBar1 = nil; end if(warningdot1) then destroyElement(warningdot1); warningdot1 = nil; end if(not bDontDestroyTimer and isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end end addEvent("jacked", true ) addEventHandler("jacked", resourceRoot, hidePlayerFuel ) function getActualVelocity( element ) if(element) then x,y,z = getElementVelocity(element) end return math.sqrt(x^2 + y^2 + z^2) * 161 end
  2. So I wanted to use a zm server's resources to play it on local server. After downloading the resources, I copied them to the resources library. I'm talking about appr. 60 different resources belonging to this one zm server, however I only added meta to the 'zombies' resources to see whether it is working or not. After started the local, I noticed the server does not spawn any zombies. ' ERROR: Couldn't parse meta file for resource 'zombies' [Line 9: Error reading Attributes.] ' This was the error message I got. What should I fix? Or is it possible that its problem is I only loaded this one resource (not all the 60) and it can't work individually? My own-made meta: <meta> <script src='client_anim.Lua' type='client' /> <script src='help_client.Lua' type='client' /> <script src='hide_client.Lua' type='client' /> <script src='lagreduce_client.Lua' type='client' /> <script src='Moneylogs.Lua' type='server' /> <script src='ped.ifp' type='client' /> <script src='petrol_c.Lua' type='client' /> <config src='skins.xml' type='' </config> <script src='textlib.Lua' type='server' /> <script src='textlib_anim.Lua' type='server' /> <file src='zombiewood.png' /> <file src='edf/zombiespawn.png' /> <file src='fonts/BIRTH_OF_A_HERO.ttf' /> <file src='fonts/bloody.ttf' /> <file src='fonts/esquisito.ttf' /> <file src='fonts/Quarmic.ttf' /> <file src='fonts/QuartzMS.ttf' /> <file src='fx/greyscale.fx' /> <file src='fx/rt_blend.fx' /> <file src='fx/shader_null.fx' /> <file src='fx/texreplace.fx' /> <file src='images/blips/0.png' /> <file src='images/blips/2.png' /> <file src='images/blips/6.png' /> <file src='images/blips/23.png' /> <file src='images/blips/41.png' /> <file src='images/blips/48.png' /> <file src='images/blood/blood_1.png' /> <file src='images/blood/blood_2.png' /> <file src='images/blood/blood_3.png' /> <file src='images/blood/blood_4.png' /> <file src='images/blood/blood_5.png' /> <file src='images/blood/blood_6.png' /> <file src='images/hud/0.png' /> <file src='images/hud/1.png' /> <file src='images/hud/2.png' /> <file src='images/hud/3.png' /> <file src='images/hud/4.png' /> <file src='images/hud/5.png' /> <file src='images/hud/6.png' /> <file src='images/hud/7.png' /> <file src='images/hud/8.png' /> <file src='images/hud/9.png' /> <file src='images/hud/10.png' /> <file src='images/hud/11.png' /> <file src='images/hud/12.png' /> <file src='images/hud/13.png' /> <file src='images/hud/14.png' /> <file src='images/hud/15.png' /> <file src='images/hud/16.png' /> <file src='images/hud/17.png' /> <file src='images/hud/18.png' /> <file src='images/hud/22.png' /> <file src='images/hud/23.png' /> <file src='images/hud/24.png' /> <file src='images/hud/25.png' /> <file src='images/hud/26.png' /> <file src='images/hud/27.png' /> <file src='images/hud/28.png' /> <file src='images/hud/29.png' /> <file src='images/hud/30.png' /> <file src='images/hud/31.png' /> <file src='images/hud/32.png' /> <file src='images/hud/33.png' /> <file src='images/hud/34.png' /> <file src='images/hud/35.png' /> <file src='images/hud/36.png' /> <file src='images/hud/37.png' /> <file src='images/hud/38.png' /> <file src='images/hud/39.png' /> <file src='images/hud/40.png' /> <file src='images/hud/41.png' /> <file src='images/hud/42.png' /> <file src='images/hud/43.png' /> <file src='images/hud/44.png' /> <file src='images/hud/45.png' /> <file src='images/hud/46.png' /> <file src='images/ranks/admin.png' /> <file src='images/ranks/admin1.png' /> <file src='images/ranks/admin2.png' /> <file src='images/ranks/admin3.png' /> <file src='images/ranks/headadmin.png' /> <file src='images/ranks/langmod.png' /> <file src='images/ranks/leadadmin.png' /> <file src='images/ranks/mod.png' /> <file src='images/ranks/mod1.png' /> <file src='images/ranks/mod2.png' /> <file src='images/ranks/mod3.png' /> <file src='images/ranks/mod4.png' /> <file src='images/ranks/owner.png' /> <file src='images/ranks/rank1.png' /> <file src='images/ranks/rank2.png' /> <file src='images/ranks/rank3.png' /> <file src='images/ranks/rank4.png' /> <file src='images/ranks/rank5.png' /> <file src='images/ranks/rank6.png' /> <file src='images/ranks/rank7.png' /> <file src='images/ranks/rank8.png' /> <file src='images/ranks/rank9.png' /> <file src='images/ranks/rank10.png' /> <file src='images/ranks/rank11.png' /> <file src='images/ranks/rank12.png' /> <file src='images/ranks/rank13.png' /> <file src='images/ranks/rank14.png' /> <file src='images/ranks/rank15.png' /> <file src='images/ranks/rank16.png' /> <file src='images/ranks/rank17.png' /> <file src='images/ranks/rank18.png' /> <file src='images/ranks/rank19.png' /> <file src='images/ranks/rank20.png' /> <file src='images/ranks/rank21.png' /> <file src='images/ranks/rank22.png' /> <file src='images/ranks/rank23.png' /> <file src='images/ranks/trialadmin.png' /> <file src='images/ranks/trialmod.png' /> <file src='images/ranks/vip.png' /> <file src='images/textures/radardisc.png' /> <file src='images/textures/radardisca.png' /> <file src='images/angrymode.png' /> <file src='images/blank.png' /> <file src='images/cautious.png' /> <file src='images/chromium.png' /> <file src='images/clickable.png' /> <file src='images/continue_.png' /> <file src='images/easy.png' /> <file src='images/egg.png' /> <file src='images/egg_sel.png' /> <file src='images/Fuel_Dot.png' /> <file src='images/Fuel_Gage.png' /> <file src='images/GAN.png' /> <file src='images/gtamplogo.png' /> <file src='images/hazardious.png' /> <file src='images/help.png' /> <file src='images/impossible.png' /> <file src='images/info.png' /> <file src='images/loading.png' /> <file src='images/logo.png' /> <file src='images/map.png' /> <file src='images/newsbg.png' /> <file src='images/panelbg.png' /> <file src='images/party.png' /> <file src='images/phone.png' /> <file src='images/radioactive.png' /> <file src='images/skills.png' /> <file src='images/satellite_.png' /> <file src='images/title.png' /> <file src='images/vip.png' /> <file src='images/warning_dot.png' /> <file src='images/wired.png' /> <file src='images/wrench.png' /> <file src='images/youtube.png' /> <file src='images/zmbg_.png' /> <file src='images/zombieHead.png' /> <file src='mods/a51_ext.txd' /> <file src='mods/flashlight.txd' /> <file src='mods/flashlight.dff' /> <script src='radio/radiogui.Lua' type='server' /> <config src='radio/radios.xml' type='' </config> <file src='skins/13.txd' /> <file src='skins/22.txd' /> <file src='skins/56.txd' /> <file src='skins/67.txd' /> <file src='skins/68.txd' /> <file src='skins/69.txd' /> <file src='skins/70.txd' /> <file src='skins/84.txd' /> <file src='skins/92.txd' /> <file src='skins/97.txd' /> <file src='skins/105.txd' /> <file src='skins/107.txd' /> <file src='skins/108.txd' /> <file src='skins/111.txd' /> <file src='skins/126.txd' /> <file src='skins/127.txd' /> <file src='skins/128.txd' /> <file src='skins/152.txd' /> <file src='skins/162.txd' /> <file src='skins/167.txd' /> <file src='skins/188.txd' /> <file src='skins/192.txd' /> <file src='skins/195.txd' /> <file src='skins/206.txd' /> <file src='skins/209.txd' /> <file src='skins/212.txd' /> <file src='skins/229.txd' /> <file src='skins/230.txd' /> <file src='skins/258.txd' /> <file src='skins/264.txd' /> <file src='skins/274.txd' /> <file src='skins/277.txd' /> <file src='skins/280.txd' /> <file src='skins/287.txd' /> <file src='skins/bfori.txd' /> <file src='skins/bfost.txd' /> <file src='skins/bikera.txd' /> <file src='skins/bmost.txd' /> <file src='skins/bmycon.txd' /> <file src='skins/bmyri.txd' /> <file src='skins/bmyst.txd' /> <file src='skins/cwmyhb1.txd' /> <file src='skins/cwmyhb2.txd' /> <file src='skins/dwmolc2.txd' /> <file src='skins/fam1.txd' /> <file src='skins/fam2.txd' /> <file src='skins/fam3.txd' /> <file src='skins/hfybe.txd' /> <file src='skins/hmyri.txd' /> <file src='skins/lvemt1.txd' /> <file src='skins/omyri.txd' /> <file src='skins/sbfyst.txd' /> <file src='skins/sbmyri.txd' /> <file src='skins/sofyst.txd' /> <file src='skins/somyst.txd' /> <file src='skins/swmotr4.txd' /> <file src='skins/swmyst.txd' /> <file src='skins/vhfyst.txd' /> <file src='skins/vwfyst1.txd' /> <file src='skins/wfyri.txd' /> <file src='skins/wfyro.txd' /> <file src='skins/wfyst.txd' /> <file src='skins/wmoice.txd' /> <file src='skins/wmori.txd' /> <file src='skins/wmybar.txd' /> <file src='skins/wmybe.txd' /> <file src='skins/wmybp.txd' /> <file src='skins/wmycr.txd' /> <file src='skins/wmymech.txd' /> <file src='skins/wmyst.txd' /> <file src='sounds/aced.mp3' /> <file src='sounds/beat.mp3' /> <file src='sounds/bodyExplode.ogg' /> <file src='sounds/boss_1.ogg' /> <file src='sounds/boss_2.ogg' /> <file src='sounds/boss_3.ogg' /> <file src='sounds/car_close.ogg' /> <file src='sounds/car_open.ogg' /> <file src='sounds/chopper.ogg' /> <file src='sounds/explosion1.mp3' /> <file src='sounds/explosion2.mp3' /> <file src='sounds/explosion3.mp3' /> <file src='sounds/fireworks.ogg' /> <file src='sounds/gates.ogg' /> <file src='sounds/lvlup_1.mp3' /> <file src='sounds/lvlup_2.mp3' /> <file src='sounds/mgroan1.ogg' /> <file src='sounds/mgroan2.ogg' /> <file src='sounds/mgroan3.ogg' /> <file src='sounds/mgroan4.ogg' /> <file src='sounds/mgroan5.ogg' /> <file src='sounds/mgroan6.ogg' /> <file src='sounds/mgroan7.ogg' /> <file src='sounds/mgroan8.ogg' /> <file src='sounds/mgroan9.ogg' /> <file src='sounds/mgroan10.ogg' /> <file src='sounds/phonepop.ogg' /> <file src='sounds/plasma.wav' /> <file src='sounds/pm_.wav' /> <file src='sounds/rocket.ogg' /> <file src='sounds/switch.wav' /> <file src='sounds/tick.wav' /> <file src='sounds/unjamm.mp3' /> <file src='sounds/wrenching.ogg' /> <file src='zskins/zomb1.dff' /> <file src='zskins/zomb1.txd' /> <file src='zskins/zomb2.dff' /> <file src='zskins/zomb2.txd' /> <file src='zskins/zomb3.dff' /> <file src='zskins/zomb3.txd' /> <file src='zskins/zomb4.dff' /> <file src='zskins/zomb4.txd' /> <file src='zskins/zomb5.dff' /> <file src='zskins/zomb5.txd' /> <file src='zskins/zomb6.dff' /> <file src='zskins/zomb6.txd' /> <file src='zskins/zomb7.dff' /> <file src='zskins/zomb7.txd' /> <file src='zskins/zomb8.dff' /> <file src='zskins/zomb8.txd' /> <file src='zskins/zomb9.dff' /> <file src='zskins/zomb9.txd' /> <file src='zskins/zomb10.dff' /> <file src='zskins/zomb10.txd' /> <file src='zskins/zomb11.dff' /> <file src='zskins/zomb11.txd' /> <file src='zskins/zomb12.dff' /> <file src='zskins/zomb12.txd' /> <file src='zskins/zomb13.dff' /> <file src='zskins/zomb13.txd' /> <file src='zskins/zomb14.dff' /> <file src='zskins/zomb14.txd' /> <file src='zskins/zomb15.dff' /> <file src='zskins/zomb15.txd' /> <file src='zskins/zomb16.dff' /> <file src='zskins/zomb16.txd' /> <file src='zskins/zomb17.dff' /> <file src='zskins/zomb17.txd' /> <file src='zskins/zomb18.dff' /> <file src='zskins/zomb18.txd' /> <file src='zskins/zomb19.dff' /> <file src='zskins/zomb19.txd' /> <file src='zskins/zomb20.dff' /> <file src='zskins/zomb20.txd' /> <file src='zskins/zomb21.dff' /> <file src='zskins/zomb21.txd' /> <file src='zskins/zomb22.dff' /> <file src='zskins/zomb22.txd' /> <file src='zskins/zomb23.dff' /> <file src='zskins/zomb23.txd' /> <file src='zskins/zomb24.dff' /> <file src='zskins/zomb24.txd' /> <file src='zskins/zomb25.dff' /> <file src='zskins/zomb25.txd' /> <file src='zskins/zomb26.dff' /> <file src='zskins/zomb26.txd' /> <file src='zskins/zomb27.dff' /> <file src='zskins/zomb27.txd' /> <file src='zskins/zomb28.dff' /> <file src='zskins/zomb28.txd' /> <file src='zskins/zomb29.dff' /> <file src='zskins/zomb29.txd' /> <export function="createZombie" type="server"/> <export function="isPedZombie" type="server"/> </meta>
  3. First of all, sorry for bad English. I am creating a script and I used the getElementData function to get data stored in the user account and then the setElementData function to get the information through the getElementData on the client but the script has the following error in debugging: Bad argument @ setElementData [Expect element at argument 1, got nil] SCRIPT: [SERVER-SIDE] function setarDados_Entrar(source) local acc = getPlayerAccount(source) local habl = getAccountData(acc, "hablt") local ficha = getAccountData(acc, "fichacriminal") setElementData(source, "hblt", habl)--In that error line setElementData(source, "fich", ficha) -- In that error line end function setarDados_Iniciar() local acc = getPlayerAccount(player) local habl = getAccountData(acc, "hablt") local ficha = getAccountData(acc, "fichacriminal") setElementData(player, "hblt", habl)--In that error line setElementData(player, "fich", ficha)--In that error line end function setarDados_Mudar(player) local acc = getPlayerAccount(player) local habl = getAccountData(acc, "hablt") local ficha = getAccountData(acc, "fichacriminal") setElementData(player, "hblt", habl)--In that error line setElementData(player, "fich", ficha)--In that error line end addEventHandler("onPlayerLogin", getRootElement(), setarDados_Entrar) addEventHandler("onResourceStart", root, setarDados_Iniciar) addEventHandler("onAccountDataChange", root, setarDados_Mudar)
  4. Hey , this is my code , He don't create the XML file and i tried this : ( Only Client ) function createXML() if source == vehPanel.button[1] then settings = xmlCreateFile("savedsettings.xml","settings") if guiCheckBoxGetSelected(vehPanel.checkbox[1]) then xmlNodeSetAttribute(settings, "car", "true") else xmlNodeSetAttribute(settings, "car", "false") end end addEventHandler("onClientGUIClick", getRootElement(), createXML) And this : function createXML() settings = xmlCreateFile("savedsettings.xml","settings") if guiCheckBoxGetSelected(vehPanel.checkbox[1]) then xmlNodeSetAttribute(settings, "car", "true") else xmlNodeSetAttribute(settings, "car", "false") end end addEventHandler("onClientResourceStart", getRootElement(), createXML) And this : function createXML() local exists = fileExists ( "savedsettings.xml" ) if not exists then settings = xmlCreateFile("savedsettings.xml","settings") if guiCheckBoxGetSelected(vehPanel.checkbox[1]) then xmlNodeSetAttribute(settings, "car", "true") else xmlNodeSetAttribute(settings, "car", "false") end end addEventHandler("onClientResourceStart", getRootElement(), createXML) And no one create xml , i need some help please , this is the end code : function load() local currentFile = xmlLoadFile ("savedsettings.xml") if xmlNodeGetAttribute(currentFile, "car") == "true" then guiCheckBoxSetSelected(vehPanel.checkbox[1], true) veh1() end end load()
  5. From 22:30 am wanting to access my account, but will not let me ... As reason tells me and try to enter more than 10 times misspelling password, but I do not play for 2 days or so ago, a 30h aproximadamente..Cuestion not let me change against disconnects me to want to change it and tells me try after 24 hours, but it seems wrong to have to wait and not to get to play for two days, and I can not queiro play. ..osea, any solution?