AttachEntitiesToRope
DocsAttachEntitiesToRope(ropeId, ent1, ent2, ent1_x, ent1_y, ent1_z, ent2_x, ent2_y, ent2_z, length, p10, p11, boneName1, boneName2)Description
Attaches entity 1 to entity 2.
Parameters
| Name | Type | Description |
|---|---|---|
ropeId | int | — |
ent1 | Entity | — |
ent2 | Entity | — |
ent1_x | float | — |
ent1_y | float | — |
ent1_z | float | — |
ent2_x | float | — |
ent2_y | float | — |
ent2_z | float | — |
length | float | — |
p10 | BOOL | — |
p11 | BOOL | — |
boneName1 | char* | — |
boneName2 | char* | — |
Quick Snippet: Get Entityent1ent2
ent1ent2Use 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
voidThis native does not return a value.