Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ainesophaur

Members
  • Joined

  • Last visited

Everything posted by ainesophaur

  1. That's one of the common ways to do it. I would test what results you get with Vector3.TravelDistance() http://docs.ragepluginhook.net/html/C1AEA24D.htm http://docs.ragepluginhook.net/html/FF036733.htm I've used it plenty of times and it's always been accurate for me. I had a list of spawn points that I would loop through and check their distance to the LocalPlayer
  2. How are you checking the distance? There's a method which takes a vector3 and gives you the travel distance
  3. Scalability is why i use Nodejs :) horizontal scaling ftw. I would love to authenticate against the lcpdfr site.. Is there any logic that I can tap into? If the users profile page had a token that could be used to auth that would work out perfectly for anyone wanting to auth their plugin. If you guys baked this into lcpdfr and it was open sourced Id love to help maintain it.. I've done nearly everything with nodejs
  4. I actually messaged a few times with @AlconH but I was under the impression that his API was more strictly to be used by the MDT/Computer+ plugins that are being merged. I would love to provide the API if our efforts could be merged because it's what I excel at, but I didn't want to step on any toes since his API would use PHP. I didn't want to pry into how free @AlconH's schedule was as mine is quite clear or his progress in developing the API. I'm going to write up a sample plugin which gets a top 10 global (maybe region and global) daily wanted list. Once the subject is arrested (or killed) I'll mark them off the BOLO and notify all players that fugitive has been captured. I'd love to establish a bi-directional communication between plugins and the API server and receive events in real time.
  5. I've spent a few days writing an API that could be used to globally track peds, arrest reports, accident reports, traffic tickets, etc. I spent a lot of time around the experience in using the API and there is a strictly controlled schema defining the request/response object types. Before I put it away in the closet as an "Ok, I did it" project, I wanted to see if this was something that developers would like to use in their plugins/callouts. If thats the case, I'll publish the server publicly and provide more details. Current Features Officer Login/Logout Officer stats number of arrests number of reports number of tickets total time logged in Create/List/View Reports Traffic Ticket Arrest Reports Incident Reports Ped Tickets In terms of integration with plugins, if there was interest I would write a C# library which could be included in the developers plugin. There would be helpful wrappers to the HTTP calls.. something like GlobalDB.find(firstName, lastName, dob), GlobalDB.login(officerUsername/id) Currently the API returns JSON, but I'm considering adding XML support (Since .NET loves XML so much) I'm also very open to discussion, feature requests and collaboration (API server is a node.js HAPI server) Below is a request to the API to create a report POST /api/report/arrest Request body { "createdAt": "2016-06-04", "updatedAt": "2016-06-04", "officer": "c67e3855-442d-49fd-95b2-7f01201a9218", "type": "ARREST", "location": { "street": "Fake Street", "city": "Sandy Shores" }, "ped": { "firstName": "John", "lastName": "Doe", "dob": "08/08/1988", "gender": "M" }, "statement": "Individual was traveling at excess speeds and failed to yield. A high speed persuit begun", "charges": [ { "isFelony": true, "title": "Grand Theft", "description": "Stolen vehicle 132ABC" }, { "isFelony": true, "title": "Possession of controlled substance", "description": "Xanax 12ct" }, { "isFelony": false, "title": "Failure to identification", "description": "No ID" } ], "recoveredItems": [ "Xanax 12ct", "Whisky bottle" ] } Response body { "createdAt": "2016-06-04T00:00:00.000Z", "updatedAt": "2016-06-04T00:00:00.000Z", "officer": "c67e3855-442d-49fd-95b2-7f01201a9218", "type": "ARREST", "location": { "street": "Fake Street", "city": "Sandy Shores" }, "ped": { "firstName": "John", "lastName": "Doe", "dob": "08/08/1988", "gender": "M" }, "statement": "Individual was traveling at excess speeds and failed to yield. A high speed persuit begun", "charges": [ { "isFelony": true, "title": "Grand Theft", "description": "Stolen vehicle 132ABC" }, { "isFelony": true, "title": "Possession of controlled substance", "description": "Xanax 12ct" }, { "isFelony": false, "title": "Failure to identification", "description": "No ID" } ], "recoveredItems": [ "Xanax 12ct", "Whisky bottle" ], "_id": "26923b9a-c550-4a4a-9a26-c96bd36f207f" } If there are any developers who would like to utilize this let me know. If there are any devs who feel comfortable making the HTTP calls themselves before I put out the library, I can grant them access to the API and the swagger explorer page -- this will provide you with the schema definitions and a testing bed for the calls. There is also an ability to generate callouts and properties server side and dispatch them to the player. Using an mqtt client, there could be a plugin that can alert players about a suspect who escaped (like a bolo) or generates the name and properties of a call out to start for the player
  6. Are there any tasks you can assign to the ped like the drive around task? The invisible thing is hard for me to wrap my head around, but in the code you posted I don't see anything going on in terms of what the helicopter should do. I'd imagine the game wouldn't just let it fall out of the sky when it's spawned. I'd try to just create a blip for the destination and check how far the player is.. Only once they're close enough should you spawn the helicopter
  7. I wonder if it has to do with your in game drawing distance.. What is your in game graphic setting for it?
  8. You also need to set the return type if you want to get the handler. Without setting a return type of <unit> the native is going to return as a void function NativeFunction.Natives.CreateCheckpoint<uint>(0, position.X, position.Y, position.Z, 0f, 0f, 0f, 5f, 255, 0, 0, 1000, 0);
  9. NativeFunction.Natives.CREATE_CHECKPOINT You need to use pascal case names when calling native functions using the dynamic "Natives" property. Rage.Native.NativeFunction.Natives.CreateCheckpoint
  10. How are you creating the blip? Are you attaching it to an entity? I find it better to create the blip myself and just keep track of it in an list
  11. When you're registering your plugin you have an attribute called EntryPoint that tells rage which method to execute when it loads. Without using the default class name of EntryPoint, your plugin is never executing. http://docs.ragepluginhook.net/html/FCA1A76.htm
  12. According to the code you posted, you don't have your main method inside a class
  13. The crash log doesn't say much because you may not have had the pdb file loaded. When you build your project you get a .DLL and a .pdb -- the pdb allows the game to know where your code actually crashed so copy it to the lspdfr plugin dir with your plugin. If you look at your first crash log it tells you the issue was dealing with rage blips that were destroyed. The log file above has a bunch of ?????? Marks
  14. If that is true I wonder if there is any adverse affects from it? IE it stifles callouts that lspdfr selects and causes other callouts to be selected less
  15. Off the top of my head, the probability that you see in the ini files of some plugins isn't dealing with the probability attribute. I'd guess they just set the probability to high and control whether to show or skip the callouts before it's shown to the user through code. The ini file probability are numerical so they're doing some sort of calculation.
  16. I haven't dealt with dead peds yet, but as long as the handle is valid I'd imagine there's some way I seen somewhere on the rage forums that the animationflags enum allows things like having an animation play but still allow the player to move (upperbody only) If you haven't tried them, see if they make any difference http://docs.ragepluginhook.net/html/39D6F89A.htm
  17. You should look up LINQ queries for c#. Without LINQ you'd have to manually iterate through the array and conditionally select the desired ped. With LINQ you deal with streams so you can intelligently filter your list. You can also convert your Ped array into a List<Ped> You get the model of the ped by checking ped.Model when performing the LINQ query
  18. There is a task that is something along the lines of jack ped where you pass of the jacker and the jackee Edit: I was wrong. I was thinking of the property that sets whether the ped stays in a jacked vehicle but now thinking about it, it'd probably be what keeps passengers in as hostages
  19. How were you having the users set the probability? What is the ideal scenario you'd like to achieve?
  20. No the arguments are params style. Are you doing callbyname or callbyhash? I've seen some report that calling by name would fail on some calls but calling by the hash would work
  21. Can you elaborate on "you're not using the existing handle"? Are you wrapping them in an IntPtr?
  22. It's possible the keep calm plugin isn't affecting those you target. I would keep with the native for checking the free aim and then setting the ped attributes to not flee or fight. May or may not work. http://gtaforums.com/topic/793401-stop-peds-from-fleeing-method-2/
  23. Use a key press event to change the depth distance ;)
  24. I believe you may be able to use the camera code I posted above to get the vector3. You can then use the rage.graphics library to draw a circle at x and Y. I know there is a function to convert a world vector to a screen vector2. If you can figure that out then you can check for entity's within the point of the marker
  25. I wouldn't mind assisting you by answering questions. However, you should primer yourself with learning the basics of C#. You can download visual studio community 2015 and run through beginner tutorials. The reason for this is to get comfortable with the language itself. Doing stuff within GTA is an extra layer on top of C# which can add to a lot of confusion for a new developer. Finally, it's best to post your questions within the Tutorials & Questions forum. A lot of the questions you'll have may be the same question someone else has.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.