project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
336 stars 277 forks source link

Bug: camera only black pictures #1081

Closed feanor5555 closed 9 months ago

feanor5555 commented 9 months ago

Development Issue

Yes

Phone Version

release npwd 1.8.1 and https://github.com/project-error/screenshot-basic release 1.0.1

Issue Description

no error messages in server or client, i use fivemanage, i see the pictures in fivemanage but they are black only

my config.json { "PhoneAsItem": { "enabled": false, "exportResource": "my-core-resource", "exportFunction": "myCheckerFunction" }, "general": { "useResourceIntegration": true, "toggleKey": "f1", "toggleCommand": "phone", "defaultLanguage": "en" }, "contacts": { "frameworkPay": false, "payResource": "my-core-resource", "payFunction": "myCheckerFunction" }, "profanityFilter": { "enabled": false, "badWords": ["esx"] }, "database": { "useIdentifierPrefix": false, "playerTable": "users", "identifierColumn": "identifier", "identifierType": "license", "profileQueries": true, "phoneNumberColumn": "phone_number" }, "debug": { "level": "error", "enabled": true, "sentryEnabled": true }, "defaultContacts": [], "disabledApps": [], "apps": ["pefcl"], "voiceMessage": { "enabled": false, "authorizationHeader": "PE-Secret", "url": "", "returnedDataIndexes": ["url"] }, "images": { "url": "https://api.fivemanage.com/api/image", "type": "image", "imageEncoding": "webp", "contentType": "multipart/form-data", "useContentType": false, "authorizationHeader": "Authorization", "authorizationPrefix": "", "useAuthorization": true, "returnedDataIndexes": ["url"] }, "voiceMessage": { "enabled": true, "authorizationHeader": "Authorization", "url": "https://api.fivemanage.com/api/audio", "returnedDataIndexes": ["url"] } }

Issue Reproduction

open phone, start camera make a photo with enter. a picture which is black only appear in gallery

Evidence

No response

feanor5555 commented 9 months ago

i cleaned server and client cache and nows it works, no more black pictures :)