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)
Last update: April 12, 2022
Created: June 27, 2021
Created: June 27, 2021