[Release] /me but the text is 3D printed

Just change the command from me to do or copy the

RegisterCommand('me', function(source, args)
    local text = '' -- edit here if you want to change the language : EN: the person / FR: la personne
    for i = 1,#args do
        text = text .. ' ' .. args[i]
    end
    text = text .. ' '

    TriggerServerEvent('3dme:shareDisplay', text)
end)

RegisterCommand('me', function(source, args)
    local text = '' -- edit here if you want to change the language : EN: the person / FR: la personne
    for i = 1,#args do
        text = text .. ' ' .. args[i]
    end
    text = text .. ' '

    TriggerServerEvent('3dme:shareDisplay', text)
end)

Adding another one should work.

How i can change the far whitch the /me go like my /me tou can see it from the whole map

How can I change format of the file for ut8?

Line 38 and line 59.

Has anyone been able to get the text to display over the player that sent the message? I have been tweaking this script for a few, and this is the only thing that’s stumping me. Right now the text displays over the client no matter who sends it, I’d love to have it display over the ped that sent it. Or am I mistaken and that is way beyond the scope of this script?

EDIT: Correction, after more troubleshooting, it appears this script in it’s base form does what I want. It was only when I tried implementing RP names that it stopped working that way.

EDIT2: So I guess my new question is more about how I could get roleplay names working properly. I think that people that are having the issue wherein everyone can see the text server wide are attempting to integrate the version you posted with identity integration, because that is where I started when I was trying to get RP names working.

Can you please also add “do” command? With other colors that “me”? I tried to modify the script so i can edit the colors of diffrent commands but it’s pretty hard to modify it that way. (kinda new to lua, still getting used to it )

Other than that, thanks for this awesome script! :slight_smile: :smiley:

@shryk42 I’ve done an ESX implementation of RP names a few post above, take a look at it.

@AderQ I’ll try to provide you a modification to implement the do command.

@Elio It was the quick RP name implementation that you added that I started with. I changed some things and tested, it works correctly for the client, but all /me text appears over the clients head, even when posted by another player. I think it has something to do with the fact that the implementation is occurring on the server side instead of client. I tried to rewrite the ESX implementation to see if I could get it to work, but I got pulled away to other things. I’m currently using the resource without RP names and I like it, but I’d love to figure it out at some point. If you have thoughts, I would gladly help test; or if not, I will probably work on it again at some point soon.

Edit: it’s worth mentioning that I tested your version unmodified with the same result.

Let me see what you have done, I’ll take a look at it when I have some spare time.

@Elio Just finished modifying your version of the script. I added a simple config file to it so people can modify it on the spot, as well as a second command “do”. I will credit you as an original creator tho since i used a portion of your script. :slight_smile: If you want i can post it on git so anyone can download it.

1 Like

@Elio Here is a link to my fork:

I’ll probably delete the fork after you look at it. It doesn’t really need to be there.

1 Like

Is there any way to make the font size smaller? Other than that, wow! So simple and straight forward. Thank you for this

SetTextScale(0.0*scale, 0.42*scale)

change the scale in client.lua

I added a /rolldice to this script just like the one from nopixel and was wondering if i need to get permission to paste a code snippet for it here?

Very new to this… @Elio

Thank you so much for this. Worked perfectly!!!

I also added a custom /bed for those thin hospital beds with a cool laying around animation…

someones know how to add id to the chat message?

Anyway you could send me that script for the /rolldice?

RegisterCommand('rolldice', function(source, args)
    RequestAnimDict('mp_player_int_upperwank')
    local myPed = PlayerPedId(-1)
    local animation = 'mp_player_int_wank_01_enter'
    local animation2 = 'mp_player_int_wank_01_exit'
    local flags = 8
    TaskPlayAnim(myPed, 'mp_player_int_upperwank', animation, 8.0, -8, -1, flags, 0, 0, 0, 0)
    Wait(650)
    TaskPlayAnim(myPed, 'mp_player_int_upperwank', animation2, 8.0, -8, -1, flags, 0, 0, 0, 0)
    Citizen.Wait(700)
    num = math.random(1,6)
    num2 = math.random(1,6)
    num3 = math.random(1,6)
    local text = 'Rolled: \n'..num..'/6\n'..num2..'/6\n'..num3..'/6'
    for i = 1,#args do
        text = text .. '' .. args[i]
    end
    text = text .. ' '
    TriggerServerEvent('3dme:shareDisplay', text)
end)

You’re Welcome!

Where am I adding this into the 3dme at if you dont mind me asking because I can not get it to work