News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
0 Members and 3 Guests are viewing this topic.
It's OK, but not great. It crashes if you do not have a ped targeted. You should make sure that the target ped is a valid ped by using PedIsValid(ped)
local GetTarg = PedGetTargetPed(gPlayer) if IsButtonPressed(14,0) and not PedIsValid(GetTarg) then TextPrintString("No ped in target!",2,1)
Okay, I tried it, as soon as I pressed one of the Arrow keys, It crashed, I tried this twice, both times crashed, I don't know if that was just my computer, or if it's the mod. Good work on this one though.