This is a follow-up to #388. User who opened the issue was right and has been backed up by various open.mp devs. D query is not yet supported by omp, which breaks regular gtasam queries on these servers, resulting in an empty players array. A workaround is using C queries instead, similarly to how vcm is handled, which returns a less detailed, but handy array of players along with their scores.
This adds a separate protocol for the already existing gtasao query type, which extends base samp. This new protocol sends a C packet instead of D and will consequently return a populated array of players, as expected.
Below are 2 queries for a server running open.mp with these changes added. More of a before and afer since both queries previously returned empty players arrays.
This is a follow-up to #388. User who opened the issue was right and has been backed up by various open.mp devs.
D
query is not yet supported by omp, which breaks regulargtasam
queries on these servers, resulting in an emptyplayers
array. A workaround is usingC
queries instead, similarly to howvcm
is handled, which returns a less detailed, but handy array of players along with their scores. This adds a separate protocol for the already existinggtasao
query type, which extends basesamp
. This new protocol sends aC
packet instead ofD
and will consequently return a populated array of players, as expected. Below are 2 queries for a server running open.mp with these changes added. More of a before and afer since both queries previously returned empty players arrays.gtasam (D query - empty player list)
gtasao (C query - populated player list)