meta-hub / meta_target

A complete third eye solution for FiveM and RedM, aiming to proving all solutions from fivem-target, bt-target and qtarget under one resource.
21 stars 15 forks source link

addPlayer doesn't work if player ped is frozen #42

Open minipunch opened 1 year ago

minipunch commented 1 year ago

is it just our death script or can anyone else confirm this also happens to them ?

it looks like it just doesn't detect the 'downed' person for some reason

our death script just sets their ped as just frozen with 1 health

minipunch commented 1 year ago

it appears s2w.get(...) doesn't detect entitys after they are 'frozen' via the FreezeEntityPosition(...)

Taavi-AU commented 1 year ago

ah right

Taavi-AU commented 1 year ago

thats odd, it should still return the player

minipunch commented 1 year ago

Yeah not sure myself why but it does appear that is the case

minipunch commented 1 year ago

Looks like that native screenToWorld uses doesn't register entities that are set to be 'frozen'

Taavi-AU commented 1 year ago

seems like it could be a fivem issue

minipunch commented 1 year ago

Yeah, or just how GTA V is meant to work I guess with that function lol...

Perhaps a workaround would be to just constantly set the entity's coords instead of using FreezeEntityPosition

I plan on trying that and can report back when done

Not sure how that might work if the player is being moved by someone else or put in to a vehicle or smth tho lol