Code Monkey home page Code Monkey logo

Comments (13)

Cyzxin avatar Cyzxin commented on September 13, 2024 1

you will have to get one yourself, one is not integrated into JD logs

from jd_logsv3.

JohnnyS avatar JohnnyS commented on September 13, 2024

Show how you did the export, provide more information

from jd_logsv3.

LoganZiiro avatar LoganZiiro commented on September 13, 2024
exports.JD_logsV3:createLog({
        EmbedMessage = "Verkaufspunkt | " .. GetPlayerName(source).."verkaufte sein Fahrzeug mit dem Kennzeichen: " .. plate .. ".",
        channel = "test",
        screenshot = true
    })

And at the Channel.json i add the channel test

from jd_logsv3.

LoganZiiro avatar LoganZiiro commented on September 13, 2024

`RegisterServerEvent('myVehicleshop:sellVehicle')
AddEventHandler('myVehicleshop:sellVehicle', function(plate, price, societyIdentifier)

local xPlayer = ESX.GetPlayerFromId(source)

local playerIdentifier = societyIdentifier or xPlayer.identifier
local trimmedPlate = Trim(plate)


MySQL.Async.execute('DELETE FROM owned_vehicles WHERE owner = @owner AND (plate = @plate OR plate = @trimmedPlate) LIMIT 1',
{
    ['@owner'] = playerIdentifier,
    ['@plate'] = plate,
    ['@trimmedPlate'] = trimmedPlate,
})

if societyIdentifier == nil then
    -- money to player
    xPlayer.addAccountMoney('bank', math.floor(price))
else
    -- money to society
    TriggerEvent('esx_society:getSociety', xPlayer.job.name, function(society)
        if society ~= nil then
            TriggerEvent('esx_addonaccount:getSharedAccount', society.account, function(account)
                account.addMoney(math.floor(price))
            end)
        end
    end)
end

print('Sell vehicle..should be removed from db: plate being ' .. plate)
exports.JD_logsV3:createLog({
    EmbedMessage = "Verkaufspunkt | " .. GetPlayerName(source).."verkaufte sein Fahrzeug mit dem Kennzeichen: " .. plate .. ".",
    channel = "test",
    screenshot = true
})

end)`

from jd_logsv3.

JohnnyS avatar JohnnyS commented on September 13, 2024

You have screenshot set to true but have no player ID to obtain the screenshot from, turn it to false and test again. If you need player details you have to add the player id field

from jd_logsv3.

LoganZiiro avatar LoganZiiro commented on September 13, 2024

Same Problem

from jd_logsv3.

JohnnyS avatar JohnnyS commented on September 13, 2024

This is the default log export

exports.JD_logsV3:createLog({
  EmbedMessage = "Embed Message",
  player_id = SERVER_ID_PLAYER_ONE,
  player_2_id = SERVER_ID_PLAYER_TWO,
  channel = "Channel name from channels.json | Discord Channel ID | Discord Webhook URL",
  screenshot = true,
	screenshot_2 = true,
	title = 'Custom Title',
	color = '#A1A1A1',
	icon = ''
})

Remove player 2 id and add your player ID and keep the embed message a String and just test to see if it works.

from jd_logsv3.

JohnnyS avatar JohnnyS commented on September 13, 2024

turn SS to false as well

from jd_logsv3.

LoganZiiro avatar LoganZiiro commented on September 13, 2024

image
Now its Work.
How can i add this Information
image

from jd_logsv3.

JohnnyS avatar JohnnyS commented on September 13, 2024

Put it in the embed message and take the data from the code

from jd_logsv3.

LoganZiiro avatar LoganZiiro commented on September 13, 2024

Now its work Perfect Thanks a Lot

Last Question has JD_Logs a Ban Export ?

from jd_logsv3.

JohnnyS avatar JohnnyS commented on September 13, 2024

Use the custom export for bans

from jd_logsv3.

LoganZiiro avatar LoganZiiro commented on September 13, 2024

Where i find the Custom Export for Bans ?

from jd_logsv3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.