Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterCommand('twt', function(source, args, rawCommand)
- if source == 0 then
- print('esx_rpchat: you can\'t use this command from rcon!')
- return
- end
- args = table.concat(args, ' ')
- local name = GetPlayerName(source)
- local steam = GetPlayerName(source)
- if Config.EnableESXIdentity then name = GetCharacterName(source) end
- TriggerClientEvent('chat:addMessage', -1, { args = { _U('twt_prefix', name), args }, color = { 0, 153, 204 } })
- TriggerEvent('DiscordBot:ToDiscord', 'chat', steam,'[Server 1] ' .. '**TWITTER: **' .. args, 'logoimageurl', true)
- --print(('%s: %s'):format(name, args))
- end, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement