MaDHouSe79 / mh-aimedic

AI Medic for qb build by MaDHouSe79
GNU General Public License v3.0
30 stars 15 forks source link

Suggestion: Stage 2 Death. #10

Open arpkaz opened 2 years ago

arpkaz commented 2 years ago

So basically it allows users to revive themselves even when they are stage 2. This is really bad when actually in practice as players can always be revived in any RP situation.

MaDHouSe79 commented 2 years ago

It checks if you are realy dead and not in laststand, PlayerData.metadata['isdead'] and if there is a player medic online the aimadic deos not work, cause there are people with the job ambulance online.. this only works if there is no medic or ambulance online.

arpkaz commented 2 years ago

the only problem is when you are really dead it revives you, if you are still in laststand it leaves you alive

arpkaz commented 2 years ago

even then the ped spawns instantly on your body once you use /aimedic and it respawns you instantly.

MaDHouSe79 commented 2 years ago

then the script works just fine, cause thats what it does :)

arpkaz commented 2 years ago

Whats the point tho on qbcore? once your dead in rp your dead all together, and if i let say get killed mid fight i can just instantly revive myself and kill them? Good script but very misleading...

MaDHouSe79 commented 2 years ago

That depends on your server rules, and you don't have to use it if you don't like it. still it doesn't work if there is an ems online so it only works if there is no ems online at all, and if this is the case, you can revive, but again you don't have to use it :) its just a snippet for servers that uses it with server rules, if you dont have roles on your server then dont use it. ;)

Oussama292006 commented 2 years ago

please i want aimedic work when you on laststand and when you're death

MaDHouSe79 commented 2 years ago

please i want aimedic work when you on laststand and when you're death

Add this to the if statement in client.lua on line 85: or PlayerData.metadata['inlaststand']