Git Product home page Git Product logo

esx_team_registry's Introduction

esx_team_registry

Features

  • In-Game Chat Tags (replaces the esx_rpchat chat message thingo)
  • Creating Teams for Players to join can be used as organisations
  • Admin Managed

Using Git

cd resources
git clone https://github.com/IdrisDose/esx_team_registry [esx]/esx_team_registry

Manually

Installation

  • Import esx_team_registry.sql in your database
  • Add this to your server.cfg (ignore stop rolesFX if you dont use it):
start esx_team_registry
stop rolesFX
  • If using esx_rpchat replace in server/main.lua:
AddEventHandler('chatMessage', function(playerId, playerName, message)
	if string.sub(message, 1, string.len('/')) ~= '/' then
		CancelEvent()

		playerName = GetRealPlayerName(playerId)
		TriggerClientEvent('chat:addMessage', -1, {args = {_U('ooc_prefix', playerName), message}, color = {128, 128, 128}})
	end
end)

with

-- AddEventHandler('chatMessage', function(source, name, message)
-- 	if string.sub(message, 1, string.len('/')) ~= '/' then
-- 		CancelEvent()

-- 		if Config.EnableESXIdentity then name = GetCharacterName(source) end

-- 		TriggerClientEvent('chat:addMessage', -1, { args = { _U('ooc_prefix', name), message }, color = { 128, 128, 128 } })
-- 	end
-- end)

Commands

/teams

Issues

  • May conflict with anything that has AddEventHandler('chatMessage' within it to resolve the issue comment out the handler and post an issue with a link to the source code.

  • If using ESX RPChat removed the OOC tag. If you want OOC back in add to your esx_rpchat server/main.lua:

RegisterCommand('ooc', 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)
	if Config.EnableESXIdentity then name = GetCharacterName(source) end

	TriggerClientEvent('chat:addMessage', -1, { args = { _U('ooc_prefix', name), args }, color = { 128, 128, 128 } })
	--print(('%s: %s'):format(name, args))
end, false)

Legal

License

esx_team_registry - rp characters

Copyright (C) 2020 IdrisDose (https://github.com/IdrisDose)

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.


esx_team_registry's People

Contributors

idrisdose avatar

Watchers

 avatar  avatar

Forkers

haarperr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.