Jump to content

Recommended Posts

Posted (edited)

Hello dear community, today i made the decision to share with you my AIM LOGS for your discord server.

 

The Aim Logs is when someone target another player with weapon or mele, my script print it in your discord webhook with full details.

 

1. First you need to Download JD_Logs v1.

2. Open from logs resource the file server.lua and find this Function!

Citizen.CreateThread(function()

	while true do
		Citizen.Wait(0)
		local playerped = GetPlayerPed(-1)

		if IsPedShooting(playerped) then
			TriggerServerEvent('playerShotWeapon', WeaponNames[tostring(GetSelectedPedWeapon(playerped))])
			Citizen.Wait(5000)
		end
	end

end)

 

3. Now Replace it with my code!

Citizen.CreateThread(function()

	while true do
		Citizen.Wait(0)
		local playerped = GetPlayerPed(-1)

		if IsPedShooting(playerped) then
			TriggerServerEvent('playerShotWeapon', WeaponNames[tostring(GetSelectedPedWeapon(playerped))])
			Citizen.Wait(5000)
		end
		if GetEntityPlayerIsFreeAimingAt(PlayerId(PlayerId)) then
			local retval, target = GetEntityPlayerIsFreeAimingAt(PlayerId())
			local targetPlayer = retval and NetworkGetPlayerIndexFromPed(target)
			local targetSource = targetPlayer and GetPlayerServerId(targetPlayer)
            TriggerServerEvent('playerAiming', targetSource, WeaponNames[tostring(GetSelectedPedWeapon(playerped))])
            Citizen.Wait(5000)
        end
	end

end)

 

4. Open open the file client.lua and paste my code!

RegisterServerEvent('playerAiming')
AddEventHandler('playerAiming', function(targetPlayer, weapon)
    local ids = ExtractIdentifiers(source)
	local postal = getPlayerLocation(source)
	local playerName = GetPlayerName(source)
	local targetIdentifiers = ExtractIdentifiers(targetPlayer)
	local targetName = GetPlayerName(targetPlayer)
	
	if Config.steamURL then if targetIdentifiers.steam ~= "" then _targetSteamURL ="\nhttps://steamcommunity.com/profiles/" ..tonumber(targetIdentifiers.steam:gsub("steam:", ""),16).."" else _targetSteamURL = "\nSteam URL: N/A" end else _targetIdentifiers = "" end
	if Config.aiming then _targetName = "\n**To Steam Name Του Στόχου:** ".. targetName .." " else _targetName = "" end
	if Config.steamID then if targetIdentifiers.steam ~= "" then _targetIdentifiers ="\n**To Steam ID Του Στόχου:** " ..targetIdentifiers.steam.."" else _targetIdentifiers = "\n**To Steam ID:** N/A" end else _targetIdentifiers = "" end
	if Config.aiming then _targetPlayer ="\n**To Α.Φ.Μ Του Στόχου:** " .. targetPlayer .."" else _targetPlayer = "" end
	if Config.aiming then if targetIdentifiers.license ~= "" then _targetLicense ="\n**To RockStar ID Του Στόχου:** " ..targetIdentifiers.license.."" else _targetLicense = "\n**To License ID :** N/A" end else _targetLicense = "" end
    if Config.discordID then if targetIdentifiers.discord ~= "" then _targetDiscord ="\n**To Discord ID Του Στόχου:** <@" ..targetIdentifiers.discord:gsub("discord:", "")..">" else _targetDiscord = "\n**Discord ID:** N/A" end else _targetDiscord = "" end
	if Config.postal then _postal = "\n**Nearest Postal:** ".. postal .."" else _postal = "" end
    if Config.discordID then if ids.discord ~= "" then _discordID ="\n**Το Discord ID Του Yπαίτιου:** <@" ..ids.discord:gsub("discord:", "")..">" else _discordID = "\n**Το Discord ID Του Yπαίτιου:** N/A" end else _discordID = "" end
	if Config.steamID then if ids.steam ~= "" then _steamID ="\n**Το Steam ID Του Yπαίτιου:** " ..ids.steam.."" else _steamID = "\n**Το Steam ID Του Yπαίτιου:** N/A" end else _steamID = "" end
	if Config.aiming then _playerName = "\n**Το Steam Name Του Yπαίτιου:** ".. playerName .." " else _playerName = "" end
	if Config.aiming then if ids.license ~= "" then _playerLicense ="\n**Το RockStar ID Του Yπαίτιου:** " ..ids.license.."" else _playerLicense = "\n**Το License ID Του Yπαίτιου:** N/A" end else _playerLicense = "" end
    if Config.steamURL then if ids.steam ~= "" then _steamURL ="\nhttps://steamcommunity.com/profiles/" ..tonumber(ids.steam:gsub("steam:", ""),16).."" else _steamURL = "\nSteam URL:** N/A" end else _steamID = "" end
	if Config.playerID then _playerID ="\n**Το Α.Φ.Μ Του Yπαίτιου :** " ..source.."" else _playerID = "" end
    if Config.weaponLog then
        discordLog('**O/H ' .. sanitize(GetPlayerName(source))  .. ' Σημάδεψε με ' ..weapon.. ' **' .. _targetName .. '' .. _targetPlayer .. ''.. _targetIdentifiers .. '' .. _targetSteamURL ..'' .. _targetDiscord .. ''.. _targetLicense .. '' .. _postal ..'' .. _playerName ..  '' .. _playerID .. ''.. _steamID ..'' .. _steamURL .. ''.. _discordID ..'' .. _playerLicense ..  '', Config.shootingColor, 'aiming')
    end
end)

 

5. Open the file config.lua and paste this line!

Config.aiming = true

 

P.S The details are writen in Greeks you must translate it!

 

 

Edited by Dragic
  • Upvote 1
  • Dragic changed the title to FiveM Discord Aim Logs

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Buying Epics/ S Gear on Elixir Whisper me
    • Hello everyone, I am looking to purchase a Premium Lineage 2 High Five server pack. My main requirements are: Stability & Quality (Most Important): The pack must be highly stable with no system errors or major bugs. Custom Features: It must include ready-to-use custom features such as a fully functional Community Board, custom NPC Buffers, and Custom Item Sellers (GM Shops), etc. Complete Files: It is absolutely necessary that the full source code (src) and complete Geodata are included. If you are selling a pack that meets these criteria, please send me a PM or leave a reply with the following information: Brief details and key features of the pack Price Test server availability (I would like to test it before buying) Thank you!
    • L2jmobiusDevClon — Classic Interlude p110 Emulator L2jmobiusDevClon is actively developing a Lineage 2 Classic Interlude p110 emulator. Development is done in free time with a strong focus on: • Stability • Authentic Classic mechanics • Clean and optimized architecture The project is based on the L2jMobius source and is continuously evolving and improving. System Requirements: • Java 25 • MariaDB 12.0 • Client p110 Current Revision: 3.0 Development Status: Active Distribution: Free Official Website: https://www.l2jmobiusdevclon.pp.ua Discord Server: https://discord.gg/23a9S8g4Bn Contact: Telegram — @L2jmobiusDevClon Also available via private messages Project Goals: ✔ Improved stability ✔ Maximum Classic accuracy ✔ Core optimization We are currently looking for: • Testers • Server administrators Suggestions, bug reports, and ideas are always welcome. Contact us via: ✔ Discord ✔ Telegram ✔ Private Messages
    • i guess loading only the effects that are needed it will maybe work, like removing from reshade shader folder the ones that are not needed, depends on the pc also i guess, also limithing the game at 30fps can be better maybe
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..