View Issue Details

IDProjectCategoryView StatusLast Update
0008235New Feature Requests[All Projects] Generalpublic2017-06-18 20:57
ReporterGallardo9944Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0008235: [Request] Remove error output if used exports['resource'] without calling a function
Description

The idea is simple: do not output an error "Call to non-running client/server resource" if you didn't specify the function to toggle. It would be better if it just returned false to check if exports are ready for that resource

TagsNo tags attached.

Activities

Fabio(GNR)

2014-05-15 16:18

viewer   ~~0020895

You can use getResourceState for that.
exports['resource'] doesnt check if it exists in any way, it just calls 'call' for you.

Gallardo9944

2014-05-15 16:32

viewer   ~~0020896

Fabio(GNR), getResourceState won't work clientside. So basically there's no way to check if the resource is ready for exports clientside or not.

arezu

2014-05-15 16:34

viewer   ~~0020897

@Gallardo
I think client-side getResourceState was added not so long ago.

arranTuna

2014-05-15 16:36

manager   ~~0020898

Executing client-side command: getResourceState
Command results: function: 4F4D5218 [function]

Gallardo9944

2014-05-15 16:57

viewer   ~~0020899

Well, wiki says the opposite: https://wiki.multitheftauto.com/wiki/GetResourceState

qaisjp

2014-05-15 17:31

administrator   ~~0020900

Are you sure... (yes I fixed the wiki)

Issue History

Date Modified Username Field Change