Jump to content

LaCosTa

Members
  • Posts

    191
  • Joined

  • Last visited

Posts posted by LaCosTa

  1. Hello, I've experienced such bug and from all I know it is related to libcef.dll that's what the module shows. 

     

    I just did all the basic steps for when MTA is crashing but still not working. Also, I re-installed GTA and then MTA, same thing.

     

    I formated my computer, it worked for some days but now it is crashing again. Anyone have a solution?

  2. Guys can someone tell me why when I reinstall gta san andreas it doesn't delete the old files it always store the files even if I deinstall it , and nowadays I'm facing a problem that when I launch the game it took 2 minutes then it crashs same to MTA since gta doesn't work , any ideas about this problem?

  3. This will let it forever

      
    function fireRocks () 
       local rock = createObject ( 3930, -2815.18, 470.16, 4.86, 0, 354.488, 0 ) 
       local weapon = createWeapon ("Molotov", -2815.18, 470.16, 4.86 ) 
       local fire = createFire ( -2815.18, 470.16, 4.86, 2) 
       attachElements ( rock, weapon, 0, 0, 2 ) 
       setTimer ( createFire, 99999999, 0,fire) 
       end 
    addCommandHandler ( "fire", fireRocks ) 
    

  4.   
    function fireRocks () 
       local rock = createObject ( 3930, -2815.18, 470.16, 4.86, 0, 354.488, 0 ) 
       local weapon = createWeapon ("Molotov", -2815.18, 470.16, 4.86 ) 
       local fire = createFire ( -2815.18, 470.16, 4.86, 2) 
       attachElements ( rock, weapon, 0, 0, 2 ) 
       setTimer ( createFire, 99999999, 1,fire) 
       end 
    addCommandHandler ( "fire", fireRocks )  
    

  5. You just opened your server with the name of his one just for a reason to bring its players to yours so basically that's totally unfair which you have to close yours when IAnnas opens his server again ..

  6. This could help you but I didn't test it, you should change the code to your code to be synced

      
      
      
    -- client side  
    -- you should get the ID from the data , try to save data first with  
    -- setElementData(element, "id", value) because I don't know your code  
    function saveInformation() 
        local text = guiGetText(memo) 
        local id = getElementData(localPlayer, "id") 
        triggerServerEvent("memoInfo", resourceRoot, text, id) 
    end 
    addEventHandler("onClientGUIClick",button,saveInformation) 
      
      
      
    --server side , you should have table where you can store the text in it and with this function 
    -- we can get it 
      
    yourTable = { 
        -- id , text  
        {1, "This is your Text"}, 
    } 
      
      
    function memoInfo(text, id) 
        for k, v in pairs(yourTable) do 
            if v[1] == id then 
                v[2] = text 
                return 
            end 
        end 
    end 
    addEvent("memoInfo", true) 
    addEventHandler("memoInfo", root, memoInfo)  
    

  7. I don't know you can use

      
    --colShape functions as  
    createColCircle  
    createColRectangle  
    -- you can find those in wiki as well as their events  
    -- or simply use  
    function authorizeCmd (thePlayer , cmd )  
        if getElementType(thePlayer) ~= "player" then return end  
        local x, y, z = getElementPosition(thePlayer) 
        zone = getZoneName(x, y, z, true) -- will output LS , LV, SF 
        if (zone == "Las Venturas" ) and (cmd) then -- you can change Las Venturas to location you want  
         -- do something  
        end  
    end  
      
    -- Not tested though .  
    

  8. here is a code allow you to create any car with typing : /create carID , type any car ID you wish and it'll be created to you

    vehicle = {}  
    function spawncar( thePlayer ,_, model) 
        if isElement(vehicle[thePlayer]) then destroyElement(vehicle[thePlayer])return end 
        local pX, pY, pZ = getElementPosition(thePlayer) 
        vehicle[thePlayer] = createVehicle(tonumber(model),pX,pY,pZ)  
        if (isElement(vehicle[thePlayer])) then  
          warpPedIntoVehicle ( thePlayer, vehicle[thePlayer] )    
          outputChatBox("You successfully created " ..tostring(getVehicleName(vehicle[thePlayer])),thePlayer,255,255,155) 
        else  
          outputChatBox("There is an error please type a valid vehicle number",thePlayer,255,0,0)   
        end  
    end 
    addCommandHandler( "create", spawncar)  
    

  9. Yah I agree with Lolman My idea is do that randomly like check the hitElement if he's player and he's standing on the colshape and create the peds there without using cancelEvent or even the event "onPlayerDamage" , I think it might work that way .

  10. I don't know but this thing happens to me alot when I use this

    function(thePlayer) 
    if (getElementType(thePlayer)=="player") then  
    -- 
    

    it outputs a debug error : expect elemnt in argument 1 got number or sometimes string or nothing .

    Is there a solution for that?

  11. Try this out .

      
    local markers = { 
        {296.20737, -37.42688, 1001.51563, 1}, 
        {312.10248, -165.32639, 999.60101, 6}, 
        {288.38971, -106.55548, 1001.51563, 6}, 
        {277.55972, -37.21804, 1001.60779, 1}, 
        {292.98145, -103.60979, 1008.27344, 6}, 
        {293.52847, -80.34721, 1001.51563, 4}, 
        {293.24643, -115.71572, 1008.27344, 4}, 
        {312.62921, -149.50658, 1007.67291, 6}, 
        {308.24817, -140.86179, 999.60156, 7}, 
    } 
      
           ammowin = guiCreateWindow(351, 132, 590, 482, "Ammunations Shop", false) 
            guiWindowSetSizable(ammowin, false) 
      
            pistol = guiCreateButton(10, 27, 116, 40, "Pistol\n10,000 $", false, ammowin) 
            pistolammo = guiCreateButton(162, 27, 116, 40, "Pistol Ammo\n5$ / ammo", false, ammowin) 
            Desert = guiCreateButton(10, 77, 116, 40, "Desert Eagle\n25,000 $", false, ammowin) 
            desertammo = guiCreateButton(162, 77, 116, 40, "Desert Eagle Ammo\n7$ / ammo", false, ammowin) 
            shotgun = guiCreateButton(10, 126, 116, 40, "Shotgun\n40,000 $", false, ammowin) 
            shotgunammo = guiCreateButton(162, 126, 116, 40, "Shotgun Ammo\n9$ / ammo", false, ammowin) 
            sawnoffshotgun = guiCreateButton(10, 176, 116, 40, "Sawn-Off Shotgun\n35,000 $", false, ammowin) 
            swanshotgunammo = guiCreateButton(162, 176, 116, 40, "Sawn-Off Ammo\n8$ / ammo", false, ammowin) 
            combatshotgun = guiCreateButton(10, 226, 116, 40, "Combat Shotgun\n40,000 $", false, ammowin) 
            combatammo = guiCreateButton(162, 226, 116, 40, "Combat Ammo\n9$ / ammo", false, ammowin) 
            Uzi = guiCreateButton(10, 276, 116, 40, "Uzi\n30,000 $", false, ammowin) 
            uziammo = guiCreateButton(162, 276, 116, 40, "Uzi Ammo\n6$ / ammo", false, ammowin) 
            MP5 = guiCreateButton(10, 326, 116, 40, "MP5\n30,000 $", false, ammowin) 
            tec9ammo = guiCreateButton(162, 376, 116, 40, "TEC-9 Ammo\n6$ / ammo", false, ammowin) 
            TEC9 = guiCreateButton(10, 376, 116, 40, "TEC-9\n25,000 $", false, ammowin) 
            ak47 = guiCreateButton(303, 27, 116, 40, "AK-47\n60,000 $", false, ammowin) 
            m4 = guiCreateButton(303, 77, 116, 40, "M4\n60,000 $", false, ammowin) 
            countryrifle = guiCreateButton(303, 127, 116, 40, "Country Rifle\n70,000 $", false, ammowin) 
            sniperrifle = guiCreateButton(303, 176, 116, 40, "Sniper Rifle\n90,000 $", false, ammowin) 
            miniigun = guiCreateButton(303, 226, 116, 40, "Minigun\n1,000,000 $", false, ammowin) 
            MP5ammo = guiCreateButton(162, 326, 116, 40, "MP5 Ammo\n7$ / ammo", false, ammowin) 
            ak47ammo = guiCreateButton(443, 27, 116, 40, "AK-47 Ammo\n11$ / ammo", false, ammowin) 
            m4ammo = guiCreateButton(443, 76, 116, 40, "M4 Ammo\n11$ / ammo", false, ammowin) 
            countryrifleammo = guiCreateButton(443, 127, 116, 40, "Country Rifle Ammo\n15$ / ammo", false, ammowin) 
            sniperrifleammo = guiCreateButton(443, 177, 116, 40, "Sniper Rifle Ammo\n15$ / ammo", false, ammowin) 
            minigunammo = guiCreateButton(443, 227, 116, 40, "Minigun Ammo\n3$ / ammo", false, ammowin) 
            close = guiCreateButton(152, 426, 268, 34, "Close", false, ammowin) 
            grenade = guiCreateButton(303, 326, 266, 40, "Grenade\n1,000$ / grenade", false, ammowin) 
            teargas = guiCreateButton(303, 277, 266, 39, "Tear Gas\n1,100$ / tear gas", false, ammowin) 
            satchel = guiCreateButton(303, 376, 266, 40, "Satchel\n1,000 $ / satchel", false, ammowin)   
                guiSetVisible (ammowin, false) 
                 
                 
    function markerscreate () 
        for index, value in ipairs ( markers ) do 
            local mx,my,mz,mi = unpack( markers[index] ) 
             mar = createMarker (mx, my, mz-1, "cylinder", 1.5, 255, 255, 255, 180) 
            setElementInterior (mar, mi, mx, my, mz-1) 
        end 
    end 
    addEventHandler( "onClientResourceStart", resourceRoot, markerscreate ) 
      
    function markerhit(hitElement) 
            if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then  
            guiSetVisible (ammowin, true) 
            showCursor (true) 
            end 
    end 
    addEventHandler( "onClientMarkerHit", mar, markerhit ) 
      
      
    

  12. Oh in that case I don't , anyways good luck with selling those scripts but please have a little bit of humanity , they spent a lot of hours even days doing those scripts for their server and you just simply get them from a stealer and asking for a profit without making any effort ....

×
×
  • Create New...