Comments (13)
you will have to get one yourself, one is not integrated into JD logs
from jd_logsv3.
Show how you did the export, provide more information
from jd_logsv3.
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.
`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.
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.
Same Problem
from jd_logsv3.
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.
turn SS to false as well
from jd_logsv3.
Now its Work.
How can i add this Information
from jd_logsv3.
Put it in the embed message and take the data from the code
from jd_logsv3.
Now its work Perfect Thanks a Lot
Last Question has JD_Logs a Ban Export ?
from jd_logsv3.
Use the custom export for bans
from jd_logsv3.
Where i find the Custom Export for Bans ?
from jd_logsv3.
Related Issues (20)
- Script error in txAdmin console HOT 3
- Script Crashes when started HOT 1
- Chat logs dont work HOT 5
- Getting error on (@JD_logsV3/server/main.lua:178) HOT 2
- Ensure error - Yarn error? HOT 1
- Screenshot command Problem HOT 2
- Server Crash HOT 4
- New txAdmin update broke jdlogs
- Resource not starting HOT 4
- Getting this error when starting the server HOT 4
- Script Error
- Bad argument #2 to 'gsub' (string/function/table expected, go
- NWRP - Some information does not show in logs.
- Does it support logging events?
- Aborted request error HOT 1
- Issue with JD Vlogs
- An error occurred while calling export `createLog` in resource `JD_logsV3`
- Issue with JD_logsV3 HOT 3
- Error data: yarn failed!
- JD_LogsV3 issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jd_logsv3.