I tried lots of different things, but to no avail…
I would like to attach an entity to myself and walk around with it. I can attach the entity and walk around with it but the heading has to change from 180°. I tried everything but nothing here is my three lines code:
local lockableentity = entity
AttachEntityToEntity(lockableentity, playerped, 11816, 0.0, 0.7, -1.0, 0.0, 0.0, 0.0, false, false, false, true, 180, true)
SetEntityHeading(lockableentity, 180.0)
Any help would bea great ! thank you already for reading my post
1 Like
function Scuba.toggle(_ped, toggle)
mask_equipped = toggle
if toggle then
AttachEntityToEntity(scubamask, _ped, GetPedBoneIndex(_ped, 65068), 0.0, 0.0, 0.0, 0.0, -90.0, 180.0, false, false, false, false, 2, true)
else
AttachEntityToEntity(scubamask, _ped, 0, 0.0, -0.2, 0.2, 0.0, 0.0, 0.0, false, false, false, false, 2, true)
end
end
just use attach entity again with the new heading, i use that ^ to take my guys scuba mask off when not in the water
I seem to do that a lot when i want to reply to something
1 Like
thanks for the code i ll look into tomorrow
you can make your diving suit script available? pls