Take a look at the previous version, there is an example in it.
what version??
How can you add when someone grabs a weapon that you get the message
I’ve made plenty of examples in this thread, dig a little bit and you’ll probably find something that suits you.
but i cannot find i want if i take a bat for example and it says a message that says Person: takes heavy weapon
Hello, i cant change the font of the text
Font of the text : client.lua
line 15 : local font = 0
Available fonts : https://imgur.com/a/oV3ciWs
Update !
V2.2
- Added a config file, including the possibility to choose a language ;
- Added command suggestion ;
- Reformated some code and the README.
Can someone help me to make it appear on both chat and in 3d? Or at least guide me on how to do it? Im not an expert coding in lua.
If you check the previous versions (1.X) there is an example to do that.
Is it posible to add these two commands together?
TriggerClientEvent(‘chatMessage’, -1, text)
“(/ME) " … GetPlayerName(source) … " (” … source … “) : " … “* the person” … TableToString(args) … " *”
So that when i type /me it appears on both chat and in 3d?
Add that server side :
TriggerClientEvent('chat:addMessage', -1, {
color = { 255, 255, 255},
multiline = true,
args = { "(/ME) " … GetPlayerName(source) … " (" … source … ") : " … "* the person" … TableToString(args) … " *" }
})
Or something like that.
I tried adding it but it only shows in chat and not in 3d
RegisterCommand(‘me’, function(source, args)
local text = “* " … Languages[Config.language].prefix … table.concat(args, " “) … " "
TriggerClientEvent(‘3dme:shareDisplay’, -1, text, source)
TriggerClientEvent(‘chat:addMessage’, -1, {color = { 255, 255, 255}, multiline = true, args = { “(/ME) " … GetPlayerName(source) … " (” … source … ") : " … " the person” … TableToString(args) … " *” }
})end)
You can customize the color of the text : Color of the text config.lua
: line 6 color = { r = 230, g = 230, b = 230, a = 255 }
.
But in chat no above head, i want color in chat
Since latest artifact, everybody can see it
Are you using the latest 3dme update ?
To be honest, i dont think so. I use this for 6 months already