What's new

Script Multicharacter - qbus

BlackHawk1991

Silver Elite
Joined
Jun 19, 2021
Messages
45
Reaction score
6
Points
156
Location
Sweden
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️

Thanks!
 

v1llem

Gold Elite
Joined
Apr 4, 2021
Messages
107
Reaction score
61
Points
231
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️

 

NickBlue12

Silver Elite
Joined
Feb 7, 2022
Messages
17
Reaction score
8
Points
156
Location
Portugal
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️

 

SikhGamerYT

Bronze Elite
Joined
Feb 15, 2022
Messages
19
Reaction score
2
Points
156
Location
india
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.


GOOD FORUMS🖋️

nice one thank you so much
 

replay999

Silver Elite
Joined
Oct 8, 2021
Messages
44
Reaction score
16
Points
156
Location
Germany
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

nice​
GOOD FORUMS🖋️

 

cyrex1337

Member
Joined
Apr 8, 2022
Messages
3
Reaction score
0
Points
146
Location
cyriexa
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️

damn
 

engiXo

Gold Elite
Joined
Oct 28, 2021
Messages
39
Reaction score
58
Points
231
Location
america
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️

+rep
 

lfelipe2507

Member
Joined
Mar 24, 2021
Messages
1
Reaction score
0
Points
146
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Paso - 2 Para que las fotos de los personajes funcionen, debes hacer algunas ediciones en el gcphone. Debe ir a gcphone/server/twitter.lua , encontrar este evento gcPhone:twitter_setAvatarUr l y luego escribir el código que he proporcionado a continuación.

View attachment 1364

[CÓDIGO]exportaciones['ghmattimysql']:ejecutar("ACTUALIZAR `jugadores` SET `mugshot`= @avatarUrl DONDE ciudadanoid = @citizenid", {
['@citizenid'] = identificador.PlayerData.citizenid,
['@avatarUrl'] = avatarUrl
}, función (resultado)
fin)[/CÓDIGO]

Paso - 3 Si está utilizando qb-apartments, debe eliminar el evento denominado apartments:client:setupSpawnUI en el cliente y reemplazar el qb-spawn en el archivo que compartí a continuación con el suyo.

*** Texto oculto: no se puede citar. ***

✔️

BUENOS FOROS🖋️
un
 
Joined
Feb 23, 2022
Messages
12
Reaction score
1
Points
166
Location
swedenm
✌️Hello VAG Forum Family✌️

The main skeleton of its view is from the framework I saw in a different forum and I integrated it into qbus multicharacter. I will share with you the multi-character with various features added.​


Extra Features

- You can turn on the ability of players to delete their own character via Config
- In the same way, you can set whether the slots after the 1st slot will be opened according to the authorization you have given over the database via the config (For a player, you must first open the 2nd slot on the database and then open the 3rd slot, if you open the 3rd slot first, it will not work)


Setup

Step - 1
You need to install the sql file I gave

Step - 2 In order for the character photos to work, you need to make some edits on the gcphone. You need to go to gcphone/server/twitter.lua, find this event gcPhone:twitter_setAvatarUrl, and then write the code that I have given below.

View attachment 1364

Code:
exports['ghmattimysql']:execute("UPDATE `players` SET `mugshot`= @avatarUrl WHERE citizenid = @citizenid", {
     ['@citizenid'] = identifier.PlayerData.citizenid,
     ['@avatarUrl'] = avatarUrl
    }, function(result)
end)

Step - 3 If you are using qb-apartments, you need to remove the event named apartments:client:setupSpawnUI on the client and replace the qb-spawn in the file I shared below with yours.

*** Hidden text: cannot be quoted. ***

✔️

GOOD FORUMS🖋️

 
Top