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.
The latest updated version of RAGE Plugin Hook, required to play LSPDFR, can be found inside the LSPDFR download. It is not currently available on the RAGE Plugin Hook website.

AI generated callouts

Featured Replies

I've been messing with BARD and openai trying to get it to make me a K9 backup callout pack that uses random dialog, when it does make the code and give me the instructions it has me installing it in folders and editing config files that don't exist. does anyone have experience with making their own callouts with ai that have any tips on how i should be asking it to create it?

my pic.png

2 hours ago, rican a55a551n said:

when it does make the code

You only have raw code -right
The tool did not give you a dll (of cause not)
So the raw code from the tool need to be build, and the resulting dll need to be installed in proper folder

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Author
56 minutes ago, GTAbear said:

You only have raw code -right
The tool did not give you a dll (of cause not)
So the raw code from the tool need to be build, and the resulting dll need to be installed in proper folder

ill give it a watch, im really interested in seeing what ai can do. i would use visual studios to make the dll correct?

my pic.png

18 hours ago, rican a55a551n said:

i would use visual studios to make the dll correct?

Well any complete c# library platform would be useable, but i use MSVisualStudio-community release (free version), and am pretty pleased with that.
If you post the AI-code i will be happy to attempt to build it for you

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Author
7 hours ago, GTAbear said:

Well any complete c# library platform would be useable, but i use MSVisualStudio-community release (free version), and am pretty pleased with that.
If you post the AI-code i will be happy to attempt to build it for you

checked out the video, some pretty creative actions. i like the part that lets you take any vehicle. 

I would appreciate it if you could give it a try for me.

 

this is what i asked it to create

 

can you make a callout pack for lspdfr that is written in C# that allows me to respond as a k9 police callouts included would be traffic stop back up, traffic stop drug search, missing person or any other callout you deem appropriate. id like it to spawn in random locations in san andreas and have random scenarios, outcomes and use the AI to generate more complex conversations and interactions between me and the other characters in the callout.

 

this was the code i received 

 

Spoiler

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using LSPDFR;
using LSPDFR.Callouts;
using LSPDFR.Extensions;
using LSPDFR.GUI;
using LSPDFR.Hashes;
using LSPDFR.Objects;
using LSPDFR.Overrides;
using LSPDFR.Util;

namespace K9Callouts
{
    public class K9Callouts : Script
    {
        public K9Callouts()
        {
            // Register callout events
            RegisterCallout("traffic_stop_backup", OnTrafficStopBackup);
            RegisterCallout("traffic_stop_drug_search", OnTrafficStopDrugSearch);
            RegisterCallout("missing_person", OnMissingPerson);

            // Initialize AI
            AI = new K9AI();
        }

        private void OnTrafficStopBackup(CalloutArgs args)
        {
            // Get the traffic stop ped
            Ped ped = args.Ped;

            // Get the traffic stop vehicle
            Vehicle vehicle = args.Vehicle;

            // Get the traffic stop location
            Vector3 location = args.Location;

            // Spawn the K9 unit
            SpawnK9Unit(location);

            // Tell the K9 unit to search the traffic stop vehicle
            AI.SearchVehicle(vehicle);
        }

        private void OnTrafficStopDrugSearch(CalloutArgs args)
        {
            // Get the traffic stop ped
            Ped ped = args.Ped;

            // Get the traffic stop vehicle
            Vehicle vehicle = args.Vehicle;

            // Get the traffic stop location
            Vector3 location = args.Location;

            // Spawn the K9 unit
            SpawnK9Unit(location);

            // Tell the K9 unit to search the traffic stop ped
            AI.SearchPed(ped);
        }

        private void OnMissingPerson(CalloutArgs args)
        {
            // Get the missing person ped
            Ped ped = args.Ped;

            // Get the missing person location
            Vector3 location = args.Location;

            // Spawn the K9 unit
            SpawnK9Unit(location);

            // Tell the K9 unit to search for the missing person
            AI.SearchForMissingPerson(ped);
        }

        private void SpawnK9Unit(Vector3 location)
        {
            // Create a new K9 unit ped
            Ped ped = CreatePed(Hash.K9, location, false, true);

            // Set the ped's outfit
            ped.SetOutfit(K9Outfit);

            // Set the ped's weapons
            ped.GiveWeapon(Hash.Knife, 1, false, false);

            // Set the ped's health
            ped.SetHealth(250);

            // Add the ped to the player's team
            ped.SetTeam(Player.Team);

            // Set the ped's objective
            AI.SetObjective(ped, location);
        }

        private K9AI AI;

        private static readonly Hash K9Outfit = Hash.ClothesMaleSP_CopK9;
    }
}
 

i really just want to play as a k9 officer but there's only one callout pack and im bored of it. I appreciate you giving it a go.

 

 

Edited by rican a55a551n

my pic.png

  • Management Team
20 hours ago, rican a55a551n said:

checked out the video, some pretty creative actions. i like the part that lets you take any vehicle. 

I would appreciate it if you could give it a try for me.

 

this is what i asked it to create

 

can you make a callout pack for lspdfr that is written in C# that allows me to respond as a k9 police callouts included would be traffic stop back up, traffic stop drug search, missing person or any other callout you deem appropriate. id like it to spawn in random locations in san andreas and have random scenarios, outcomes and use the AI to generate more complex conversations and interactions between me and the other characters in the callout.

 

this was the code i received 

 

  Hide contents

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using LSPDFR;
using LSPDFR.Callouts;
using LSPDFR.Extensions;
using LSPDFR.GUI;
using LSPDFR.Hashes;
using LSPDFR.Objects;
using LSPDFR.Overrides;
using LSPDFR.Util;

namespace K9Callouts
{
    public class K9Callouts : Script
    {
        public K9Callouts()
        {
            // Register callout events
            RegisterCallout("traffic_stop_backup", OnTrafficStopBackup);
            RegisterCallout("traffic_stop_drug_search", OnTrafficStopDrugSearch);
            RegisterCallout("missing_person", OnMissingPerson);

            // Initialize AI
            AI = new K9AI();
        }

        private void OnTrafficStopBackup(CalloutArgs args)
        {
            // Get the traffic stop ped
            Ped ped = args.Ped;

            // Get the traffic stop vehicle
            Vehicle vehicle = args.Vehicle;

            // Get the traffic stop location
            Vector3 location = args.Location;

            // Spawn the K9 unit
            SpawnK9Unit(location);

            // Tell the K9 unit to search the traffic stop vehicle
            AI.SearchVehicle(vehicle);
        }

        private void OnTrafficStopDrugSearch(CalloutArgs args)
        {
            // Get the traffic stop ped
            Ped ped = args.Ped;

            // Get the traffic stop vehicle
            Vehicle vehicle = args.Vehicle;

            // Get the traffic stop location
            Vector3 location = args.Location;

            // Spawn the K9 unit
            SpawnK9Unit(location);

            // Tell the K9 unit to search the traffic stop ped
            AI.SearchPed(ped);
        }

        private void OnMissingPerson(CalloutArgs args)
        {
            // Get the missing person ped
            Ped ped = args.Ped;

            // Get the missing person location
            Vector3 location = args.Location;

            // Spawn the K9 unit
            SpawnK9Unit(location);

            // Tell the K9 unit to search for the missing person
            AI.SearchForMissingPerson(ped);
        }

        private void SpawnK9Unit(Vector3 location)
        {
            // Create a new K9 unit ped
            Ped ped = CreatePed(Hash.K9, location, false, true);

            // Set the ped's outfit
            ped.SetOutfit(K9Outfit);

            // Set the ped's weapons
            ped.GiveWeapon(Hash.Knife, 1, false, false);

            // Set the ped's health
            ped.SetHealth(250);

            // Add the ped to the player's team
            ped.SetTeam(Player.Team);

            // Set the ped's objective
            AI.SetObjective(ped, location);
        }

        private K9AI AI;

        private static readonly Hash K9Outfit = Hash.ClothesMaleSP_CopK9;
    }
}
 

i really just want to play as a k9 officer but there's only one callout pack and im bored of it. I appreciate you giving it a go.

 

 

that code contains a lot of AI dreamed garbage sadly, namespaces and code that simply does not exist.

  • Author
25 minutes ago, Cyan said:

that code contains a lot of AI dreamed garbage sadly, namespaces and code that simply does not exist.

I'll see if I can ask it to make one without randomly generated responses. 

my pic.png

  • Author
45 minutes ago, Cyan said:

that code contains a lot of AI dreamed garbage sadly, namespaces and code that simply does not exist.

something like this?

 

Spoiler

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using LSPDFR;
using LSPDFR.API.Events;
using LSPDFR.API.Functions;
using LSPDFR.Plugins.StopThePed;

namespace LSPDFR.Plugins
{
    public class K9NarcoticsOfficerPlugin : Plugin
    {
        public override void OnGameStart()
        {
            // Register for the "OnCalloutReceived" event.
            Events.OnCalloutReceived += OnCalloutReceived;

            // Register for the "OnStopThePed" event.
            Events.OnStopThePed += OnStopThePed;
        }

        private void OnCalloutReceived(Callout callout)
        {
            // If the callout is for a narcotics search, respond as a K9 narcotics officer.
            if (callout.Type == CalloutType.NarcoticsSearch)
            {
                // Get the player's current vehicle.
                Vehicle vehicle = Player.CurrentVehicle;

                // If the player is not in a vehicle, spawn a K9 unit.
                if (vehicle == null)
                {
                    vehicle = SpawnVehicle("K9 Unit");
                }

                // Assign the player as the K9 unit's handler.
                vehicle.SetHandler(Player);

                // Accept the callout.
                AcceptCallout(callout);
            }
        }

        private void OnStopThePed(Ped ped)
        {
            // If the ped is carrying drugs, search them with the K9 unit.
            if (ped.IsCarryingDrugs())
            {
                // Get the player's K9 unit.
                Vehicle vehicle = Player.CurrentVehicle;

                // If the player is not in a vehicle, return.
                if (vehicle == null)
                {
                    return;
                }

                // Search the ped with the K9 unit.
                vehicle.SearchPed(ped);
            }
        }

        private void SpawnVehicle(string model)
        {
            // Get the vehicle manager.
            VehicleManager vehicleManager = new VehicleManager();

            // Spawn the vehicle.
            vehicleManager.SpawnVehicle(model, Player.Position, Player.Heading);
        }
    }
}
 

 

47 minutes ago, Cyan said:

that code contains a lot of AI dreamed garbage sadly, namespaces and code that simply does not exist.

sorry about the response i thought you were the person who responded before

my pic.png

10 minutes ago, rican a55a551n said:

the person who responded before

😛 -me, but @Cyan is much more knowledge, and he is 100% correct. That 'code' is at best possible to regard as pseudo-code, it simple does not comply with the API at all, so all actual methods would have to be made, as a class-extension library, and from scratch.
I think the AI attempt is interesting though, because it shows that noone making callouts for LSPD should feel threatened by chatGPT anytime soon 😛

 

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Author
10 minutes ago, GTAbear said:

😛 -me, but @Cyan is much more knowledge, and he is 100% correct. That 'code' is at best possible to regard as pseudo-code, it simple does not comply with the API at all, so all actual methods would have to be made, as a class-extension library, and from scratch.
I think the AI attempt is interesting though, because it shows that noone making callouts for LSPD should feel threatened by chatGPT anytime soon 😛

 

Lol well I got some studying to do I'd like to start making callouts. Recently got back into lspdfr and have fully customized my game, customized callouts would be nice. Appreciate your responses

Edited by rican a55a551n

my pic.png

On 5/21/2023 at 12:53 AM, rican a55a551n said:

studying to do I'd like to start making callouts

You do have the template for a callout?

If not it is very useful:

Also the template:

...witch i cant find?!
Maybe you have it?
If not i can post it, but its not mine, so i dont know..
Someone may have the link and posts it

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Author
4 hours ago, GTAbear said:

You do have the template for a callout?

If not it is very useful:

Also the template:

...witch i cant find?!
Maybe you have it?
If not i can post it, but its not mine, so i dont know..
Someone may have the link and posts it

Thank you I've been watching so.e videos but they never explain the reason they type something in the code. I'm gonna check out the template you li ked thank you.

my pic.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

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.