GetEntitySurfaceMaterial
Returns the hash of the ground material where the entity is in
| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
Entity | entity | - | The entity being checked |
Returns
| Data Type | Description |
|---|---|
| materialHash | The material hash of the ground |
Dont need to be called every frame
Example
local materialHash = GetEntitySurfaceMaterial(entity)