Git Product home page Git Product logo

qb-multicharacter's Introduction

qb-multicharacter

Multi Character Feature for QB-Core Framework ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘

Added support for setting default number of characters per player per Rockstar license

License

QBCore Framework
Copyright (C) 2021 Joshua Eger

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 <https://www.gnu.org/licenses/>

Dependencies

Screenshots

Character Selection Character Registration

Features

  • Ability to create up to 5 characters and delete any character.
  • Ability to see character information during selection.

Installation

Manual

  • Download the script and put it in the [qb] directory.
  • Add the following code to your server.cfg/resouces.cfg
ensure qb-core
ensure qb-multicharacter
ensure qb-spawn
ensure qb-apartments
ensure qb-clothing
ensure qb-weathersync

qb-multicharacter's People

Contributors

bakisito avatar berkiebb avatar ccasusensa avatar d4isdavid avatar danielcoelh0 avatar emresudo avatar evanillaa avatar flexbuf avatar ghzgarage avatar idrisdose avatar ihyajb avatar ingpleb avatar irishstevie avatar jay-fivem avatar jericofx avatar matthewrorke avatar mattivboiii avatar misterbuzzee avatar newtonzz avatar pedroteixeira-unp avatar roobr avatar samshanks1 avatar slugteamsix avatar suelthedev avatar sw1ft avatar theilleniumstudios avatar titanhaxz avatar tom-osborne avatar transitnode avatar z3rio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qb-multicharacter's Issues

Error when i log in!

TriggerEvent("qb-log:server:CreateLog", "joinleave", "Loaded", "green", "**".. GetPlayerName(src) .. "** ("..QBCore.Functions.GetIdentifier(src, 'discord') .." | ||" ..QBCore.Functions.GetIdentifier(src, 'ip') .. "|| | " ..QBCore.Functions.GetIdentifier(src, 'license') .." | " ..cData.citizenid.." | "..src..") loaded..")

https://imgur.com/kmujIp0
it happens when i choose character how can i resolve it ? tnx

server_logs sql is missed

this function need server_logs in sql

QBCore.Functions.CreateCallback("qb-multicharacter:server:GetServerLogs", function(source, cb)
    exports.oxmysql:fetch('SELECT * FROM server_logs', {}, function(result)
        cb(result)
    end)
end)

Error calling export execute Sync

Just updated to the latest versions of qb resources and also updated oxmysql to 1.9. We seem to be running into an issue when multicharacter tries to load a player in.

We have no changes to this resource bar some CSS edits.

Expected behavior
Character loads in with no error

Screenshots
The error here says to look above but there is nothing else in the log related to this issue.
image

Questions (please complete the following information):

  • When you last updated: [e.g. last week] - 20 minutes ago
  • Have you renamed qb- to something custom? [e.g. yes/no] - no

stuck on character creation zero errors

Pretty much as title says.

Have been getting stuck on this same screen everytime can't load in.

Have tried reverting the multicharacter back to steamID and added steam into players -- didnt work
Reverted it back to regular -- didnt work
Downloaded fresh from repo instead of txadmin depoly -- didnt work
Fresh SQL fresh MC -- didnt work

Checked all SQL connection info is all accurate and SQL was installed with no errors twice.

I'm kind of puzzled for ideas here when i'm getting literally ZERO errors anywhere (I mean that also... none xD)

Any help would be greatly appreciated <3

image

Black screen

Just an issue,
Im currently updating to the newer qb-core. I have one issue when creating a character.
When putting in name, dob, nationality and confirm im stuck in a black screen with a spinning loading sign bottom right corner.
I have no errors in consoles. F8. Etc
Im not to sure what is causing this but when removed i can load in.

[BUG] [MAJOR] "No Starting Apartment" Parameter Doesn't Work, Resets Character and Forces Apartment.

Describe the bug
When editing the config modifier of "starting apartments" to "false", it only works for the first instance when a player joins; if they relog and attempt to select the same character they just modified, it will prompt the "select apartment" screen instead of the "spawn" menu, and force one to restart their customization, essentially wiping the character.

To Reproduce
Enter config and swap "Starting apartment" to false, reload your server, launch the game, and make a new character.
Finish customizing and confirm, then, exit the game (even relaunch your server for a secondary measure), join, an reselect said character; the server will then prompt you to "select an apartment" instead of "spawn", forcing you into an apartment, resetting your customized character, and essentially reverts to starting apartments being set to false.

Expected behavior
Player data should be effectively saved regardless of whether the server chooses to enable starting apartments or not, it seems as if the server only saves the "first time character" parameters if they are given an apartment for what ever reason.

Questions (please complete the following information):

  • When you last updated: [e.g. last week] As of 2/27/2022, fresh install, similar issue on previous version, however (fresh qb-clothing addition as well).
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target] Quite a few, including qb-target, but not sure how they would effect this process.
  • Have you renamed qb- to something custom? [e.g. yes/no] No.

[BUG]

Describe the bug
A clear and concise description of what the bug is. A stranger to qbcore should be able to read your bug report and understand how to reproduce it themselves and understand how the feature should work normally.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Use this item '....' (item's name from shared.lua if applicable)
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

  • When you last updated: [e.g. last week]
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target]
  • Have you renamed qb- to something custom? [e.g. yes/no]

Additional context
Add any other context about the problem here.

Multichar Not Loading [BUG]

Describe the bug
anyone know why some players would get stuck right before the character select(the blurry screen right before the UI slides in), they have to delete their cache every time before they join and for some even that doesn't help?

Most of the time from what i've gathered the ones that have this problem have bad hardware.

To Reproduce
Steps to reproduce the behavior:

  • Try to join the server

Expected behavior
A clear and concise description of what you expected to happen.

  • The Character select UI should load in

Screenshots
Have had this error for a long time, maybe it could be related?
https://i.imgur.com/OdklSWe.png

Questions (please complete the following information):

  • When you last updated: i keep the server updated according to the change-log on discord
  • Are you using custom resource? which ones? everything Multichar related is default
  • Have you renamed qb- to something custom? No

Slots and Peds Options

Is your feature request related to a problem? Please describe.
Hello , this is no problem , just a question!

Describe the feature you'd like
Is it possible to remove slots from the multichar selection? And how can I remove the peds from the players choice of clothing?
Describe alternatives you've considered
Just wondering if it is possible and what can I do , I looked around in the script files , but I can't seem to find those options

Additional context
Thanks in advance , and sorry for the bad english!

[BUG]

MultiChar doesnt load in just leaves me on the screen of where u pick ur character when u enforce a game build in ur server.cfg any help?

Character not loading [BUG]

Describe the bug
A clear and concise description of what the bug is. A stranger to qbcore should be able to read your bug report and understand how to reproduce it themselves and understand how the feature should work normally.

To Reproduce
Steps to reproduce the behavior:
connecting to the server and having a blurry screen and not loading their characters
unknown

Expected behavior
loading to the server and showing up their characters/create character screen

Screenshots
If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

  • When you last updated: never updated anything except multichar and spawn after all the issues and never fixed it
  • Are you using custom resource? which ones? nope
  • Have you renamed qb- to something custom? nope

Additional context
things I've done
-connect and create a fivem ID
-connect steam and change steam account
-close discord (reopen discord)
-restart PC
-restart server for almost 10 times
-clear cache both (server/client)
-update qbmultichar and qbspawn
-removed whitelisting
-remove antivirus and remove firewall
-tried to connect to different qbcore servers and same thing happens

Is there a way to disable apartments!

Hi, just askin, is there a way to disable the spawn in the apartments and just use the last location, or at the begining just a default location?

I've played a bit with the code but i cant manage to do it. Thanks in advance.

Return Button does not work.

When you are on the character select screen, and click delete it pulls up another menu. On that menu it says delete and return. The return button does not do anything when you click it.

[SUGGESTION] add an admin command

Is your feature request related to a problem? Please describe.
I noticed that you can't delete the character of a player in admin

Describe the feature you'd like
I would like to have a command to delete a player's character. for example, in a roleplay server, the player's character deserves an RP death. we can say that the player in question will delete his character, but there may be people who will not do it because of divert reason

Also, it would be nice to have an option in the configuration to replace the delete button with a delete request, if possible the request would be a webhook discord. This would prevent people from creating 15 characters in the same day.

[BUG] When entering the server the multicharacter interface does not load

Some users keep reporting me that when they enter the server they get stuck in the screen before loading the list of characters, and in some cases some of them more than others, look at the console of each of them but there is no visible error in F8.

To Reproduce
Steps to reproduce the behavior:

  1. Enter to the server
  2. See the issue you're stucked (blurred screen)

Expected behavior
Load all characters of the player.

Screenshots

final_61fca2fdf22dd5008d20762d_840173.mp4

Questions (please complete the following information):

  • When you last updated: last week
  • Are you using custom resource? which ones? qb-magic, qb-policemdt
  • Have you renamed qb- to something custom?: No

As a side note, I have been updating this script and making some style modifications, but personally I have never had this problem, but it is reported a lot, even by people who had just formatted their computer.

Related #70

[BUG]

unknown (1)

So when i try to use the lastest version of game build i get this error

[BUG] Solo Session

It has been asked a couple times in the discord, and no one seems to know the answer to this issue.

Once you join the server and make a new character, it puts you in a solo session, meaning you are unable to see player and players are unable to see you unless you reconnect. It only happens everytime you create a new character.

I dont think it should put you in a solo session everytime you start making a new character. it is very annoying and lets me lose players constantly.

[BUG]

Describe the bug
Creating a character and then setting it up in the first character creation menu (looks of the character and clothes) then once I'm out of the starting apartment - I relog. Once I relog into the server, the character is invisible on the multicharacter screen AS WELL AS when I'm loaded into the server. Other people can see me but I cannot see myself. At first it was only happening for me but later, it started happening for others (assuming because they haven't relog for the first time after creating their character)

This all started happening after I tried to update these with the latest on March 30, 2022:

  • Updated qb-core resource
  • Updated qb-clothing resource
  • Removed qb-bossmenu and added qb-management (as well as ran the SQL)

To Reproduce
Steps to reproduce the behavior:

  1. First, make sure you've got the latest qb-core & qb-clothing
  2. Then create your character and customize it.
  3. Once done creating and loaded into the city streets, disconnect and relog into the server.
  4. I don't see any error on F8 Console or Server Console but you should be able to see your saved character has become invisible.

Expected behavior
Expected it to be normal and not be invisible.

Screenshots
image

Questions (please complete the following information):

  • Updated qb-multicharacter last week, however, updated qb-core, qb-clothing yesterday.
  • okokChatV2 was added yesterday too but nothing else has caused any issue before.
  • No, I have not renamed any resource other than removing "-main" from the end.

Additional context
Was told by treyyy to make this bug report as we both think it has something to do with qb-multicharacter. If not, I apologize but I hope to get this fixed soon as it's pretty major to not be able to see your own character.

[BUG] Correct character appearance not showing at select screen and newest version stuck loading.

I was having an issue when selecting my character that it loads the default appearance of a mp character and not showing him as he should appear with his proper clothing etc.

So I decided to update to the current version of multicharacter and now when loading in to the server it gets stuck at "Awaiting Scrips".

Any suggestions how to fix the character select in the previous version or is there something I need to do with the new version?

Screenshots
If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

  • When you last updated: just started re building the server with an old build I had.
  • Are you using custom resource? no
  • Have you renamed qb- to something custom? no

[SUGGESTION]

Is your feature request related to a problem? Please describe.
Some of player load slow at the qb-multiplayer , some of them bugged. most of them will create more character to store money/item, they also logout and spawn in different places to escape from police ..

Describe the feature you'd like
I want only 1 player created at firsttime and next login player will straight by pass qb-multicharacter and spawn at their last locations.

Character delete issue

Intermitent Issue ;

When deleting a character, the UI is not updating ; I've checked the database and the information is deleted so it's really an update/refresh issue I believe. If you try to delete the character that still shows, qb-core kicks player for exploit.

Also tested with multiple characters, if you have say 3 characters, delete one, bug happens ; delete another one, the first deleted character disappears.

Edit : In order to reproduce the issue I cleared cache on both server and my client.

Attached video includes the database refresh, and the issue occuring while deleting multiple characters ;

2021-08-31.14-33-46.1.mp4

[BUG] Character isn't getting updated when loging out of city.

So i updated my server about 4-5 days ago and now it have seem that none of my character data is being save after loging out. i have made a post about this in the qb-core cause i wasn't sure which one was the right area and i aspect it to be address. i Post this Video about my issue https://youtu.be/Y5veb0DDCyo ..
I havent had any issue up until i got this latest update and it has been like 3 days since i was told about this issue and its still not fix.
Can i get some support plz

[BUG] Dead player while creating character

When someone got high ping or a bad computer it soon happen that this player will die in to the menu of creation of the character.
Only fix is to reload fiveM until it can create his character (happen before putting the identity).
The player cannot be revived because of adminmenu doesn't load him until the character is playing and online.

updated to this newest one

ran into a issue where i couldn't get Oxmysql to work so i went back to ghattmysql but not i have this issue
image

[BUG] when adding new ped for qbcore

Describe the bug
Hello, the problem is frequent with many users
It is when you add a new PED
problems appear in fivem natives
The problem appears with older versions
And new versions of the project Unresolved

Expected behavior
When adding a custom ped

Screenshots
https://ibb.co/whTjKkw
and more link for problem
https://forum.cfx.re/t/qbcore-error-with-ped/4750818
#25
qbcore-framework/qb-core#210
Discord server can be checked
There are many problems with this

Questions (please complete the following information):

  • When you last updated: [yesterday]
  • Are you using custom resource? which ones? [no]
  • Have you renamed qb- to something custom? [no]

Additional context
The problem is with the qb-multicharacter not loading ped
https://docs.fivem.net/natives/?_0x389EF71
I have add new ped with other projects esx and vrp And it was working fine

MultiCharacter Whitelist[SUGGESTION]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

This request is not related to a problem but more of an enhancement.

Describe the feature you'd like
A clear and concise description of what you want to happen. and with as much detail as possible how it would function in your opinion. Please try to keep it unique.

What I am requesting is the ability to limit who can create multiple characters by adding a whitelist. By default limiting most players to 1 character (or even adding to the config.lua the ability to set the number of characters allowed by default) and allowing other specified users the default amount of multi characters currently available.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered for people to have in mind just in case the main idea isn't liked but a derivative is.

I'm open to other alternatives as this isn't something I require but rather something I thought could be useful to most users in the community.

Additional context
Add any other context or screenshots about the feature request here.

[BUG] 4k Resolution CSS

Users at 4k resolution cannot press the "Confirm" button after choosing to register a new character, due to the formatting of the css not adapting properly for the text boxes. Additionally, there are some other various visual issues with text size.
image

This bug is present on the default-qbcore recipe.

[BUG] Won't allow the use of name "Michelle"

Describe the bug
Create a new character with name Michelle and you will get error in the f8 console

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Character Selection screen
  2. Click on Create New Character
  3. Enter firstname: Michelle and then enter any lastname/nationality/date of birth.
  4. Press f8 to see the error

Expected behavior
Should allow the use of the word Michelle

Screenshots
image

Questions (please complete the following information):

  • When you last updated: Yesterday
  • Are you using custom resource? which ones? No custom resources
  • Have you renamed qb- to something custom? No

[BUG] Character deletion

Deleting character (persists) and then attempting to delete again
When deleting a character from the multicharacter selection, the character info is deleted from the database and characters are refreshed in the character selection, however the deleted character persists in the list. If you attempt to delete the character again you get kicked for 'exploiting'.

Deleting character and then relogging
If you delete a character and relog then the character is no longer shown in the list, however this is not ideal

duplicated html

could you check the file index.html again
as i see the form is duplicated 2 times

[BUG]With QB-appartment removed

Describe the bug
If i remove QB-appartment and set it to false in the config.lua from qb-multicharacter i'm able to create a new character that spawn at the airport, but if i leave and rejoin my character selection will load but upon clicking on any character and clicking play i just get an infinite black loading screen. To fix this i had to put it back to true and put back the qb-appartment files.
To Reproduce
Steps to reproduce the behavior:

  1. Remove QB-appartment and set it to false in config
  2. Create a new player
  3. After player is created leave and rejoin and try loading any character either a new one or old one
  4. Upon clicking Play you get an infinite loading black screen

Expected behavior
I expected the character to actually spawn and be able to play but it doesn't seem to be this way.

Questions (please complete the following information):

  • My multi-character was updated last week.
  • Yeah i am using lots of custom ressources but like i said if i turn it back to true it works.
  • Have you renamed qb- to something custom? [e.g. yes/no] : No

Additional context
Hope i can get this thing sorted out because i want to remove qb-appartment interely and qb-multicharacter seems to really require it since the whole server breaks if removed.

[SUGGESTION] - MultiCharacter for admin only

Is your feature request related to a problem? Please describe.
A clear and concise description of the nature of the problem.

For now everyone can create multiple characters

Describe the feature you want
A clear and concise description of what you want to happen. and in as much detail as possible how it would work in your opinion. Please try to keep it unique.

Make the creation of several characters possible only for people whitelist example of admin or moderator on the server

Describe the alternatives you have considered
A clear and concise description of any alternative solutions or features you have considered for people to have in mind in case the main idea is not liked but a derivative is.

For RP servers we want to limit character creation for our players, one per person except for admins who can create more.

EPICS new player stuck at characters selection screen

Describe the bug
Problem occurs when new player from epics license stuck at characters creation screen

To Reproduce
Steps to reproduce the behavior:

  1. Start Fivem
  2. Stuck at character creations screen

Expected behaviour
Should show the characters selection screen

Screenshots
image

[BUG] Players Disappearing When Changing Characters

Describe the bug
We have noticed when you go to your apartment (or house) and change character in-game, and leave apartment (or house) it will put you in a different instance than what everyone else is in. Its acting like when you change character it is not putting you back into the correct instance that everyone is in when you leave apartment (or house).

To Reproduce
Steps to reproduce the behavior:

  1. Enter apartment (with other people in server)
  2. Change your character
  3. Leave apartment with new character you just changed into
  4. Meet some at the same location and you will not see them till the person who changed character re-logs

Screenshots
My apologies for not having and video for this. I will try and get video later.

Questions (please complete the following information):

  • When you last updated: 5/4/2022
  • Are you using custom resource? which ones? qb-target
  • Have you renamed qb- to something custom? No

[BUG] Not allowed spaces in Nationality section

Describe the bug
When typing in a nationality with a space, it doesn't let you, e.g. NZ European or New Zealander

To Reproduce
Steps to reproduce the behavior:

  1. Make a new character
  2. Enter a nationality with a space in it

Expected behavior
Field should allow gaps

Screenshots
N/A

Questions (please complete the following information):

  • When you last updated: Current
  • Are you using custom resource? which ones? No
  • Have you renamed qb- to something custom? No

Additional context
Just think it's something that was missed as most of nationalities would be "White", "African-American", "European" etc

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.