RedEM-RP / redem_roleplay

RedEM Roleplay Framework
https://discord.gg/nbmTmZR
Other
59 stars 50 forks source link

cl_notification.lua: Aattempt to index a nil value (global 'DataView') #54

Open draobrehtom opened 11 months ago

draobrehtom commented 11 months ago
^1SCRIPT ERROR: @redem_roleplay/client/cl_notification.lua:106: attempt to index a nil value (global 'DataView')^7
^3> ref^7 (^5@redem_roleplay/client/cl_notification.lua^7:106)
^3> handler^7 (^5@redem_roleplay/client/cl_notification.lua^7:22)
^1SCRIPT ERROR: @redem_roleplay/client/cl_notification.lua:22: 
^5 An error occurred while calling export `ShowAdvancedNotification` in resource `redem_roleplay`:

image

image

Zer0Cool0 commented 11 months ago

Dataview is a module that needs to be imported. See this pull request. I'll ask that this gets merged officially so this is no longer an issue for developers when starting to work on RedEM

d-pruessmeier commented 5 months ago

Still getting an error with this fix:

MainThrd/ ^1SCRIPT ERROR: @redem_roleplay/client/cl_dataview.lua:188: bad argument #3 to 'pack' (wrong length)^7 [ 333687] [b1491_GTAProce] MainThrd/ ^3> [global chunk]^7 (^5@redem_roleplay/client/cl_dataview.lua^7:188) [ 333687] [b1491_GTAProce] MainThrd/ ^3> ref^7 (^5@redem_roleplay/client/cl_notification.lua^7:108) [ 333687] [b1491_GTAProce] MainThrd/ ^3> handler^7 (^5@redem_roleplay/client/cl_notification.lua^7:22) [ 333687] [b1491_GTAProce] MainThrd/ ^3> ref^7 (^5@redem_roleplay/client/cl_functions.lua^7:88) [ 333687] [b1491_GTAProce] MainThrd/ ^3> handler^7 (^5@redemrp_status/client/main.lua^7:272) [ 333687] [b1491_GTAProce] MainThrd/ ^1SCRIPT ERROR: @redem_roleplay/client/cl_notification.lua:22: [ 333687] [b1491_GTAProce] MainThrd/ ^5 An error occurred while calling export ShowAdvancedNotification in resource redem_roleplay: [ 333687] [b1491_GTAProce] MainThrd/ [ 333687] [b1491_GTAProce] MainThrd/ ^5 ---^7