What a shape test is allowed to hit.

These are bit flags, but combine them with Bits.bor, not Haxe's `` —

that operator compiles to a shim requiring a Lua module FXServer does not have, and takes the whole resource down at load time. See fivem.shared.util.Bits.

Variables

@:value(cast 31)@:impl@:enuminlineread onlyEverything:RaycastFlags = 31

Everything solid: world, vehicles, peds and objects.

@:value(cast 256)@:impl@:enuminlineread onlyFoliage:RaycastFlags = 256

@:value(cast 16)@:impl@:enuminlineread onlyObjects:RaycastFlags = 16

@:value(cast 8)@:impl@:enuminlineread onlyPeds:RaycastFlags = 8

@:value(cast 4)@:impl@:enuminlineread onlyPedsSimple:RaycastFlags = 4

@:value(cast 2)@:impl@:enuminlineread onlyVehicles:RaycastFlags = 2

@:value(cast 32)@:impl@:enuminlineread onlyWater:RaycastFlags = 32

@:value(cast 1)@:impl@:enuminlineread onlyWorldGeometry:RaycastFlags = 1

Static map geometry: terrain, buildings, props baked into the map.