StopEntityAnim
Docslocal retval = StopEntityAnim(entity, animation, animGroup, p3)Description
RAGEPluginHook list: docs.ragepluginhook.net/html/62951c37-a440-478c-b389-c471230ddfc5.htm
Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
animation | char* | — |
animGroup | char* | — |
p3 | float | — |
Quick Snippet: Get Entityentity
entityUse this to obtain an entity handle from the player's aim or crosshair.
-- Get the entity the player is aiming at
local ped = PlayerPedId()
local hit, entity = GetEntityPlayerIsFreeAimingAt(PlayerId())
if hit and entity ~= 0 then
print("Entity: " .. entity)
print("Model: " .. GetEntityModel(entity))
print("Type: " .. GetEntityType(entity)) -- 1=Ped, 2=Vehicle, 3=Object
endReturns
AnyReturn type varies depending on context.