Command scripting help!

I need help with makeing /runpl (run plate) /runid (runs name) /searchpl (search player) /searchveh (search vehicle) I know how to make the basic command but I want the name to be in front of the message not after, I try to put the … playername before and it does not work and I am stuck… thanks for the help in advance

RegisterCommand('runpl', function(source, args, user)
    local message = table.concat(args, ' ')
    local playername = GetPlayerName(source)
    TriggerClientEvent('chatMessage', -1, '', {255, 0 , 0}, '^5Runs Plate what comes back? | ' .. playername .. '^r  ' .. '^7 ' .. message)
end)

image

Shouldn’t make any difference where you put it, worked for me:


Here’s the code I used:

-- Server.lua
RegisterCommand('runpl', function(source)
    TriggerClientEvent('chatMessage', -1, '', {255, 0 , 0}, '^5' .. GetPlayerName(source) .. ' runs plate, what comes back?')
end)
1 Like

Thank You! I should have been able to see that and get it myself but… its been a little chaotic and restless these past few days. +rep 100 :slight_smile: