Skip to content

CALauer/esx_irpidentity

Repository files navigation

esx_irpidentity

ImpulseRP's Multicharacter Support for ESX

DOES NOT WORK WITH ESX LATEST RELEASE

At this time, this does not work with ESX's latest version. I encourage you to attempt to get it to, but it is not likely. Support for this respository is still available, but there is no longer going to be updates / changes at this time.

Dependencies

Support

Installation

Make sure you have of those resources, this may/may not work with some of them. Most your issues will be  the database 
setup. Refer to the .sql document for how your tables need to be setup. I will have a better guide in the future perhaps. 
It may be a good idea to just backup your current users, and delete that table and install this one. Works best when the 
users are emptied. Also make sure you have the latest updates from fiveM meaning version 16.8.6.

* Add esx_irpidentity into your [esx] folder
* Import the importMe.sql file into your database
* Add start esx_irpidentity to your `server.cfg`

Demo

- You can check this out on my test server 
- 185.249.196.165:32126
- Here is a short video as well

What does this resource offer?

- Allows servers to support up to three identities/account
- Allows users to easily switch between toons
- Requires little to no effort to install
- Compatible with ESX based servers
- Will have long term support
- Easily customize the registration page
- Does not manipulate steam id's
- Possible support for more than 3 character slots
- Jobs/Skin/Loadout/Cash/Bank tied to character

Current Commands

- /register		- Opens the registration/characters selection screen || No longer Available
- /charlist		- displays a list of all your characters || No longer Available
- /char			- displays your active character
- /switch 		- switch toons/register

How it works

The concept is very simple and similar to Kashacters approach, however rather than manipulating steam identifiers
and concatenating 1500 things, it simply saves all your information on your active toon, and when you switch toons,
or register a new toon it updates your character at that point and time and then retrieve the character of your
choosing and then just swaps information. 

If you are generally interested in how it works, I will try to add something on my forums that is a bit more 
specific.

v1.0.52

Versions 1.0.5 on now introduce what I am calling IrpID. This is a unique identifier assigned to each of your 
characters. This allows for them to each ahve their own inventories. Adapting this to other resources will be
much easier then that of any other character system that is currently released(as far as I know), with that 
you should only need to add irpid with the identifier/as the identifier with other resource. You will have to
have a basic understanding of how identifiers work to have it working with more complex resources like some
garages, disc inventory(intend on adding support for this) and ect. For developers who know people are using 
this resource, will easily be able to develop around it using the IrpID system. 

Known Issues as of 11/21/2019

- All vehicles , itmes, and property are account bound. Meaning All your toons will share the same vehicles, items, 
  and property
- Loadouts may/maynot be working. Not 100% sure. Will be testing
- Can not delete users without accessing the database
- Sometimes you will get force respawn when loading
- You can make a 4th toon by registering after you have created 3 characters by using the /switch commands

Goals/Future Updates

Piorities

- Add delete character feature
- Make items/property/vehicles bound to character not account

Goals/Future Updates

- Create specific area for character swapping  (Complete)
- Add delete chracter feature				   (Complete)
- Speed up transitioning time				   (Complete)
- Add more checks to registration         		
- Code cleanup								   (OnGoing)				

Other

- This code is a bit sloppy and this is my first big release. So please bear with me, I wanted to release this 
  sooner than later that is why it is being released now. I appreciate all feedback, both good and bad. 

Kudos

I just want to thank the creaters of esx_identity and Kashacters. Both these resources have inspired me to
release this. Alot of this code is their code just repurposed, moved, and fiddled with to make this 
functioning as I believe was intended. You can check out their resources below. Also would like to thank 
Lance and SJR for assisting me with the multiplayer testing of this resource. 	

Other

Feel free to customize this in anyway you like, expect updates and changes. I hope you enjoy this because it has
taken me forever to get this working. This is my first legit release so its probably not done in the best of manners. 
Enjoy!

Legal

License

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/.

About

ImpulseRP's Multicharacter Support for ESX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published