File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
workshop/gamemodes/cinema_modded/gamemode/modules/theater/services Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -122,17 +122,18 @@ if CLIENT then
122122 print ((" [%s - Debug]: %s" ):format (serviceName , msg ))
123123 end
124124
125- if msg :StartWith (" METADATA :" ) then
126- local metadata = util . JSONToTable ( string.sub (msg , 10 ) )
125+ if msg :StartWith (" ERROR :" ) then
126+ local errmsg = string.sub (msg , 7 )
127127
128- callback (metadata )
128+ callback ({ err = errmsg } )
129129 panel :Remove ()
130+ return
130131 end
131132
132- if msg :StartWith (" ERROR :" ) then
133- local errmsg = string.sub (msg , 7 )
133+ if msg :StartWith (" METADATA :" ) then
134+ local metadata = util . JSONToTable ( string.sub (msg , 10 ) )
134135
135- callback ({ err = errmsg } )
136+ callback (metadata )
136137 panel :Remove ()
137138 end
138139 end
You can’t perform that action at this time.
0 commit comments