Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SoManyTears's Achievements


Rat (9/54)



  1. Because the codes are client-sided, the players cannot see each other's animation.Which event or function should I use on the server side for the players to see each other's animation? I really need help. local animTable = { ifp = {}, anims = { "abseil", "ARRESTgun", "ATM", "swat_run", "Swim_Tread", "Tap_hand", "Tap_handP", "turn_180", "Turn_L", "Turn_R", "WEAPON_crouch", "XPRESSscratch" } } addEventHandler("onClientResourceStart", resourceRoot, function () animTable.ifp["block"] = "ped" animTable.ifp["ifp"] = engineLoadIFP("ped.ifp", animTable.ifp["block"]) for _, v in ipairs(animTable.anims) do engineReplaceAnimation(localPlayer, "ped", v, animTable.ifp["block"], v) end end )
  2. hey ı was far away from my pc.ı did this man ! thank you
  3. thank you for your help IIYAMA. i was away from the computer.I tried this but failed.still peds cannot pass through objects.
  4. these codes I wrote do drop fps every 10 seconds.How can I use the setlementCollidableWith function properly? please help friends. setTimer (function() for i,peds in ipairs (getElementsByType ("ped")) do for i,players in ipairs (getElementsByType ("player")) do setElementCollidableWith (peds,players,false) end for i,vehicles in ipairs (getElementsByType ("vehicle")) do setElementCollidableWith (peds,vehicles,false) end for i,objects in ipairs (getElementsByType ("object")) do setElementCollidableWith (peds,objects,false) end end end,10000,0)
  5. hi guys Can you tell me why I got "warning" from these little codes? warning : Expected numbers,got non-convertable string.This warning may be an error in future versions. function showSpecificSlotWindow( slotid ) local slotname = getVehicleUpgradeSlotName( slotid ) if type( slotid ) == 'string' then slotname = slotid end local upgrades = getVehicleCompatibleUpgrades( moddingVeh ) if not hideSubToo then guiSetText( upgradeGUI.wnd, slotname ) showNewSub = false else addEventHandler( "onClientRender", getRootElement(), contractSubWindow ) end layoutButtons( slotname ) end
  6. the only problem here is the txd file works for everyone.not just for the "seals" group.If someone who understands me , please help.
  7. thanks for helping.I put a ped of 181 id on my local server right now and his skin changes with your codes friend.only those with the "seals" group should change their skin.I left the seals group and I can still use this skin.really ı am stuck on it.
  8. Hello friends, I checked forum topics for how to make private group skins but creating private group's skins topics are always unfinished.I'm just trying a simple way.The skin of the "SEALS" group should change when I start the resource.So I used a very simple code, but it had no effect.What can I do about it?Can someone help me ? thanks. function ReplaceSkin(player) if (player and isElement(player) and getElementType(player)) == "player" then if getElementData(player,'Group') == 'Seals' then txd = engineLoadTXD ( "SL.txd" ) engineImportTXD ( txd, 181) end end end addEventHandler("onClientResourceStart",resourceRoot, ReplaceSkin)
  9. I want this sound to play only in the cities that are there.But even when I enter las venturas or los santos, the sound does not stop.can someone help me ? cities = { ["Bone County"] = true, ["Red County"] = true, ["Tierra Robada"] = true, ["Flint County"] = true, ["Whetstone"] = true, } function change_weather() local x,y,z = getElementPosition(localPlayer) local city = getZoneName(x,y,z, true) if cities[city] then local sound = playSound("ambiance.mp3",true) else stopSound (sound) end end setTimer(change_weather, 1000, 1)
  10. thank for your interest but still same problem.When ı press stopbutton,video still continues.I tried a lot of code, but there are still problems.
  11. hi guys, All of my codes are working,except removeEventHandler.What should ı do to remove the video on screen ? I'am really stuck on it.thanks for helps. function getB() loadBrowserURL(source, "https://www.youtube.com/") end addEventHandler("onClientGUIClick",root, function () local browser = guiCreateBrowser(0, 0, 1, 300, false, false, true, bbas) local theBrowser = guiGetBrowser(browser) if source == youbutton then addEventHandler("onClientBrowserCreated", theBrowser,getB) guiSetEnabled ( youbutton, false ) guiSetEnabled ( googlebutton, false ) elseif source == stopbutton then removeEventHandler("onClientBrowserCreated", theBrowser,getB) guiSetEnabled ( youbutton, true ) guiSetEnabled ( googlebutton,true) end end)
  • Create New...