⚒️Utilities

RSC.HasAccess

RSC.HasAccess( ply: Entity, cb: function(bool) )

Checks if specified player can use screengrabber. Calls cb argument with boolean passed. Passes true if player have access, otherwise false.

RSC.AsyncHasAccess

Promise<bool> RSC.AsyncHasAccess( ply: Entity )

Same as RSC.HasAccess. Instead of calling callback returns a promise that fulfilled with boolean.

RSC.CanScreengrab

RSC.CanScreengrab( receiver: Entity, victim: Entity, cb: function(bool) )

Checks if specified receiver can screengrab victim. Calls cb argument with passed boolean. Passes true if receiver can screengrab victim.

RSC.AsyncCanScreengrab

Same as RSC.CanScreengrab. Instead of calling callback returns a promise that fulfilled with boolean.

RSC.ParseQuality

Returns image format (png or jpeg) and jpeg quality. If quality == 2 then returns png image format If quality == 1 or 2 then returns jpeg image format and 80 or 60 jpeg quality

RSC.FindPlayer

Finds player by search string. Can search by steamid, steamid64 and part of a player name. Returns entity if found, otherwise nil

RSC.Capture

This function is used internally to capture local screen.

This is clientside function

Last updated