DreaM40BG

Members
  • Content Count

    40
  • Joined

  • Last visited

Community Reputation

1 Neutral

About DreaM40BG

  • Rank
    Rat
  • Birthday April 14

Details

  • Gang
    DIXIKLO-Servers
  • Location
    Bulgaria

Recent Profile Visitors

454 profile views
  1. Ok nvm I found an another way, you can lock the topic but if anybody wants to make it for free, do it ;d
  2. Hello, I have a car shop resource, but people throw away they cars in the ocean or the car shop and there are 10+ cars in one and they explode, this is a problem. Can you edit this mod so people who not join in 48 hours get their cars despawned but it must stay in F2 and they can get it back by clicking on "Bring it here", the resource has this function. Or every 48 hours - despawn all cars but pls make function that spawn the car when it explode or something on the last place where it was (position bring it here) Also, can you make a function that outputchatbox when you try to enter the car its owner? It is really important, the resource cause lags because of the too many cars, I need it very soon. I can pay € from PayPal, I really need it and I can't code it. Download : https://drive.google.com/file/d/1r67hdUy8EoOi3WKOfb0GbgjSDjdqvCGc/view?usp=sharing
  3. It shows 1.XXXXXXXXXXXXXXX and the owner but when the owner leave the server it resets and doesn't show the owner, or when join again - doesn't show
  4. Apf, I was sleepy and I defined client.Lua as a server, now It is working but it has a bug: If the owner leave the server and connect again when I write /owner it shows that this car doesn't have an owner.
  5. The script is not working. :[ @VenomNX
  6. I will check it tomorrow and I will write. Thank you
  7. Like triggerserverevent or what? And how to make a "radar" for these cars, I mean how to see the driver list of the car in front of me, not to all in the server?
  8. Hello, I'm new at Lua and I want help - can you give me a script which when I'm near a car write /owner and it shows a GUI or idk outputchatbox with the last 5 drivers for example.
  9. I think I fixed it, lock the topic. Thanks
  10. https://drive.google.com/file/d/1BeqND1xf3iuCvATVB28ofkg1njb-5IPT/view There are too much scripts
  11. I don't see errors from this resource. https://imgur.com/a/RIMWh6M
  12. I've added a gas station mod but it cause lags and I couldn't understand why are these lags. It's important, can you please help me? Mod: https://drive.google.com/file/d/1BeqND1xf3iuCvATVB28ofkg1njb-5IPT/view?usp=sharing
  13. Please watch the full video and give your opinion here. If you like the video like, subscribe & comment ❤️ In honor of jesse_pinkman & HenyKucT
  14. Hello dear MTA:SA players, Everything is OK with the voice chat except unmuting when reconnect (I tried with OnPlayerLogin but I couldn't do it successfully) and how to add mute duration? Also, how to make something like if players are talking only players near them to hear and for aclcheck for example "ChatControl" can talk to all the players on all the map? sPlayerMuting.Lua if isVoiceEnabled() then function setPlayerVoiceMuted ( player, muted ) if not checkValidPlayer ( player ) then return false end muted = not not muted or nil globalMuted[player] = muted return setPlayerVoiceBroadcastTo ( player, (not muted) and root or nil ) end function isPlayerVoiceMuted ( player ) if not checkValidPlayer ( player ) then return false end return not not globalMuted[player] end --Returns a list of players of which have muted the specified player function getPlayerVoiceMutedByList ( player ) if not checkValidPlayer ( player ) then return false end return tableToArray(mutedBy[player] or {}) end function updateMuted ( player ) setPlayerVoiceIgnoreFrom ( player, getPlayerVoiceMutedByList ( player ) ) end function addPlayerMutedBy () mutedBy[client] = mutedBy[client] or {} mutedBy[client][source] = true updateMuted ( client ) end addEventHandler ( "voice_mutePlayerForPlayer", root, addPlayerMutedBy ) function removePlayerMutedBy () if mutedBy[client] then mutedBy[client][source] = nil --Refresh the player updateMuted ( client ) end end addEventHandler ( "voice_unmutePlayerForPlayer", root, removePlayerMutedBy ) function addPlayerMutedByTable (players) --Single packet for multiple muted players for i,player in ipairs(players) do source = player addPlayerMutedBy() end end addEventHandler ( "voice_muteTableForPlayer", root, addPlayerMutedByTable ) addEventHandler ( "onPlayerQuit", root, function() mutedBy[source] = nil globalMuted[source] = nil end ) else setPlayerVoiceMuted = outputVoiceNotLoaded isPlayerVoiceMuted = outputVoiceNotLoaded getPlayerVoiceMutedByList = outputVoiceNotLoaded end -- Functions for backward compatibility only -- DO NOT USE THESE AS THEY WILL BE REMOVED IN A LITTLE WHILE -- function isPlayerMuted ( player ) return isPlayerVoiceMuted ( player ) end function setPlayerMuted ( player, muted ) return setPlayerVoiceMuted ( player, muted ) end function getPlayerMutedByList ( player ) return getPlayerVoiceMutedByList ( player ) end -- DO NOT USE THESE AS THEY WILL BE REMOVED IN A LITTLE WHILE -- addCommandHandler("vmute", function(player, cmd, targetname) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "ChatControl" ) ) then local target = getPlayerFromPartialName(targetname) if not target then return outputChatBox("[DIXIKLO-Servers] * Player not found! ("..targetname..")", player) end setPlayerVoiceMuted(target, true) outputChatBox("[DIXIKLO-Servers] An administrator has muted "..targetname.."", player) end end) addCommandHandler("vunmute", function(player, cmd, targetname) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "ChatControl" ) ) then local target = getPlayerFromPartialName(targetname) if not target then return outputChatBox("[DIXIKLO-Servers] Player not found! "..targetname.."", player) end setPlayerVoiceMuted(target, false) outputChatBox("[DIXIKLO-Servers] An administrator has unmuted "..targetname.."", player) end end) -- https://wiki.multitheftauto.com/wiki/GetPlayerFromPartialName function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end All the scripts: https://drive.google.com/file/d/1MgkDtkhr5dKaMZqx3iTTZeA1fLSPehA9/view?usp=sharing