Attach prop to bike

Hello guys,
Im trying to attach prop to faggio but the prop stays static(dont following the bike).

local vehicle = GetHashKey(args[1])
local prop = CreateObject(GetHashKey(args[2]), x, y, z, true, true, true)

local spawned_car = CreateVehicle(vehicle, x, y, z, GetEntityHeading(PlayerPedId())+90, 1, 0)

AttachEntityToEntity(prop, spawned_ca,  20, -0.5, -5.0, 1.0, 0.0, 0.0, 0.0, false, false, false, false, 20, true)

Can you help me? thank you

1 Like