1
0
mirror of synced 2024-11-12 01:10:47 +01:00

Update game.ts

This commit is contained in:
ghkkk090 2022-08-07 20:19:42 +07:00 committed by GitHub
parent ed05c81c55
commit 142df1c66f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1173,6 +1173,17 @@ export default class GameModule extends Module {
userItemId: true userItemId: true
} }
}) })
let wsString = "";
let wsFont = 0;
if(user.cars[0].windowStickerString !== null && user.cars[0].windowStickerString !== undefined && user.cars[0].windowStickerString !== ''){
wsString = user.cars[0].windowStickerString;
wsFont = user.cars[0].windowStickerFont;
}
else{
wsString = '';
wsFont = 0;
}
let msg = { let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
@ -1182,8 +1193,8 @@ export default class GameModule extends Module {
carStates, carStates,
// 5 cars in-game, 200 cars on terminal // 5 cars in-game, 200 cars on terminal
cars: user.cars.slice(0, body.maxCars), cars: user.cars.slice(0, body.maxCars),
windowStickerString: user.cars[0].windowStickerString, windowStickerString: wsString,
windowStickerFont: user.cars[0].windowStickerFont, windowStickerFont: wsFont,
userId: user.id, userId: user.id,
banapassportAmId: 1, banapassportAmId: 1,
mbId: 1, mbId: 1,