Skip to main content
Client Runs in your resource.

Raycast

integer
default:"511"
What the ray hits. 511 is everything.
integer
An entity to ignore. FromCamera ignores the local player by default.
table
{ hit, coords?, normal?, entity?, material? }. entity is nil for the world.
Shape tests are asynchronous: both MUST run in a thread and wait at most 1 second. FromCamera casts distance meters (default 10) from the gameplay camera.

Screen

x and y go from 0 to 1.

Example

client.lua