Jump to content

SoManyTears

Members
  • Content Count

    30
  • Joined

  • Last visited

Community Reputation

1 Neutral

About SoManyTears

  • Rank
    Rat

Recent Profile Visitors

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

  1. 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()
  2. the only problem here is the txd file works for everyone.not just for the "seals" group.If someone who understands me , please help.
  3. 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.
  4. 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
  5. 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)
  6. 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.
  7. 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 r
  8. Hello MTA World, I prepared something so that the wanted level can be seen on the player's head.but with these codes, I have to have a wanted level to see the text on the head of the player.but I don't want this.I want everyone to see whoever has a wanted level.so what's wrong here? addEventHandler( "onClientRender",root, function( ) local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for k, player in pairs(getElementsByType("player",root, true)) do if(player ~= localPlayer) then local level = getPlayerWantedLevel ( play
  9. hey fixed.thanks for all.problem is setTimer (setPlayerWantedLevel,500,1,source,wantedLevel) i removed setTimer and its working now.thanks for all again
  10. then I explain the logic in me.I created a simple wanted level save with SetAccountData.I'm really new to Lua and couldn't do any other save system.ı did it : function onQuit() local acc = getPlayerAccount(source) if not isGuestAccount(acc) then local wantedLevel = getPlayerWantedLevel (source) setAccountData(acc, "wlevel", wantedLevel) end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) function onLogin(_, acc) local acc = getPlayerAccount(source) local wantedLevel = getAccountData(acc, "wlevel") setTimer (setPlayerWanted
×
×
  • Create New...