3dme icon indicating copy to clipboard operation
3dme copied to clipboard

Make message pop up in chat for a proximity of players

Open JamieGrimwood opened this issue 4 years ago • 6 comments

This makes the /me pop up in chat for a proximity of players. Tested and works fine.

JamieGrimwood avatar Dec 12 '21 19:12 JamieGrimwood

Wait before merging this, other players can't see the text but you can. Will make a fix now.

JamieGrimwood avatar Dec 12 '21 19:12 JamieGrimwood

Hi, thanks for the pull request, can you make it as an option in the config file ?

As the code is rightnow it migth need some changes before being merged but I'll wait for you to finish your pull request before elaborating too much.

eblio avatar Dec 13 '21 00:12 eblio

Yeah I can do that, the only issue I have right now is that it only shows the player who executed the /me. I need to fix this and will tomorrow when I get to my computer.

JamieGrimwood avatar Dec 18 '21 14:12 JamieGrimwood

Yeah, you don't need to loop over every player in order to display the message. You only need to display the message in the chat when the function onShareDisplay is called and that the distance is close enough.

eblio avatar Dec 21 '21 00:12 eblio

Alright, if you could help fix it that would be great. I am very very new to lua however I thought this might work.

JamieGrimwood avatar Dec 25 '21 22:12 JamieGrimwood

I haven't launched FiveM in a while. Will probably do it in a week or so.

eblio avatar Dec 28 '21 16:12 eblio