LSPDFR-API
LSPDFR-API copied to clipboard
Few functions that would be helpful
- IsPedACop()
- IsCopInPursuit()
- RemoveCopFromPursuit()
- IsPlayerArresting
- (GetPedPlayerIsArresting)
- (eg. Set accessor to peds persona variables to more easily change just one feature eg. citations)
Some "bugs" (things that give trouble for me):
- Player gets stuck to a infinite loop, if tries to open door with passenger being CanBePulledOutOfVehicles == false
- Cops on foot far away from pursuit get stuck on aiming loop (big problemo to me with partners)
- Somethings seems to block the melee task, when ped is assigned to melee pursuit suspect?
You should separate out the bugs into separate individual posts, and tag them as bugs. Keep feature requests and bugs separate from each other to allow more accurate tagging and tracking.
For "IsPlayerArresting", you can write your own by calling GetPedArrestingOfficer, and comparing the result to Game.LocalPlayer.Character.
And yeah, as Parks said, you should separate these into their own posts.
I added them here, cause they technically aren't bugs, but they create problems when other plugins change variables etc.