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: but with esx-npwd/npwd when log/relog with character #1124

Closed xsoskiller closed 5 months ago

xsoskiller commented 5 months ago

Development Issue

Unsure

Phone Version

3.11.0

Issue Description

i got those error when i log in a character and unload a character

[ script:esx-npwd] SCRIPT ERROR: @esx-npwd/server.lua:18: No such export newPlayer in resource npwd [ script:esx-npwd] > loadESXPlayer (@es_extended/server/main.lua:298) [ script:esx-npwd] > handler (@es_extended/server/main.lua:28) [ script:esx-npwd] > rawExecute (@oxmysql/dist/build.js:25166) [ script:esx-npwd] > processTicksAndRejections (node:internal/process/task_queues:96) [ script:es_extended] [INFO] Player "asdasd asdsadsa" has connected to the server. ID: 1 [ script:esx-npwd] SCRIPT ERROR: @esx-npwd/server.lua:27: No such export unloadPlayer in resource npwd [ script:esx-npwd] > handler (@renzu_multicharacter/server/main.lua:50) [ script:es_extended] [INFO] Saved player "asdasd asdsadsa" [ script:esx-npwd] SCRIPT ERROR: @esx-npwd/server.lua:18: No such export newPlayer in resource npwd [ script:esx-npwd] > loadESXPlayer (@es_extended/server/main.lua:298) [ script:esx-npwd] > handler (@es_extended/server/main.lua:28) [ script:esx-npwd] > rawExecute (@oxmysql/dist/build.js:25166) [ script:esx-npwd] > processTicksAndRejections (node:internal/process/task_queues:96)

Multicharacter script i use: Renzu_multicharacter i don't know if you can help me with that.

Issue Reproduction

log in/relog

Evidence

image

itschip commented 5 months ago

You need to set useResourceIntegration to true in the config.json file for npwd

xsoskiller commented 5 months ago

image

already at true

itschip commented 5 months ago

@xsoskiller make sure that you have the release files of npwd and that esx-npwd is ensured before npwd

Try restarting your server afterwards.

xsoskiller commented 5 months ago

i'll download the last version and try of both

xsoskiller commented 5 months ago

alright it seem to be ok now thx