Giter Site home page Giter Site logo

dojwun / qb-multicharacter Goto Github PK

View Code? Open in Web Editor NEW
38.0 4.0 14.0 33.34 MB

All Credits to go to the original qbcore-framework repository

Home Page: https://github.com/qbcore-framework

License: GNU General Public License v3.0

Lua 31.80% HTML 10.31% CSS 33.18% JavaScript 24.70%
modified

qb-multicharacter's Introduction

Hi there, im </dojwun>#2103 ๐Ÿ‘‹

No longer Active

Updated 2/21/2022

qb-multicharacter's People

Contributors

dojwun avatar officervicious avatar slomgom 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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

qb-multicharacter's Issues

peds crash

I get a crash whenever i select the third slot which means that something is wrong with the male ped np_m_character_select , i can't also find the ydd file for the np_m_character_select

spawning in dead

having an issue where the interior isn't loading for players and their ped is falling into the water below and killing them before they get in.

Spawning in the air

When loading in initially, the character and train are both spawned in the sky. However, when i log out in the apartment and switch characters, it works as expected.

Spawn issue

When you join in the server i have this in my F8 console "HasCollisionModelLoaded"

qb-multicharacter

ive done many things to fix it but couldnt find problem, please help i have ensured it before every other resource i even deleted my cache and started fivem up again still not working

error

image
error loop if i use any item

fivem-appearance integration

QBCore.Functions.CreateCallback("qb-multicharacter:server:getSkin", function(source, cb, cid)
    local result = exports.oxmysql:fetchSync('SELECT * FROM playerskins WHERE citizenid = ? AND active = ?', {cid, 1})
    if result[1] ~= nil then
        cb(result[1].model, result[1].skin, result[1].tattoos) 
        -- print("MODEL: "..result[1].model)
        -- print("SKIN: "..result[1].skin)
        -- print("TATTOOS: "..result[1].tattoos)

    else
        cb(nil)
    end
end)

Trying to integrate fivem-appearance into this so it can load my ped. i've changed everything so it will work the only thing im having trouble with is getting the ped preview to show when i click on a character.

Here is the code for the get skin callback

QBCore.Functions.CreateCallback('fivem-appearance:getPlayerSkin', function(source, cb)
	local Player = QBCore.Functions.GetPlayer(source)
	local players = exports.oxmysql:fetchSync('SELECT skin FROM players WHERE citizenid = ?', {Player.PlayerData.citizenid})
	local player, appearance = players[1]
	if player.skin then
		appearance = json.decode(player.skin)
	end
	cb(appearance)
end)

How would i make this work with what you've created?

Thanks,
Pitzo.

prespawn character selection

after loading i spawn in default skin and multicharacter screen wont come up until i restart it have it started after qb core and qb-spawns

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.