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.

How do I change the colour of a blip?

Featured Replies

So I'm trying to change the colour of my suspects blip from the default red to blue. Below is the code I'm using but every time my callout is displayed LSPDFR crashes. Here's the crash details from the log file. Thanks in advance. http://pastebin.com/JxSh4i9D

 

suspectBlip.Color = Color.Blue;

 

ayy

Just to make sure, you're initializing the blip like this, right?:

Blip suspectBlip = new Blip(suspect);
OR
suspectBlip = suspect.AttachBlip();

suspectBlip.Color = Color.Blue;

If you want to send me your OnCalloutAccepted code in a PM, I could try and spot the error for you.

  • Author

Just to make sure, you're initializing the blip like this, right?:

Blip suspectBlip = new Blip(suspect);
OR
suspectBlip = suspect.AttachBlip();

suspectBlip.Color = Color.Blue;

If you want to send me your OnCalloutAccepted code in a PM, I could try and spot the error for you.

Ok I'll do that thanks. PM inbound

ayy

using System.Windows;
using System;
using System.Collections.Generic;
using System.Collections;
using System.Windows.Forms;
using LSPD_First_Response.Engine.Scripting.Entities;
using LSPD_First_Response.Mod.API;
using LSPD_First_Response.Mod.Callouts;
using Rage;

namespace GoodCallouts.Callouts
{
    using System.Drawing;

    [CalloutInfo("CrazyShooter", CalloutProbability.High)]
    class ShotsFiredCallout : Callout

 

And i also tried putting it above the namespace, but still no luck :\

Edited by TitanSloth

HOOYAAA

using System.Windows;
using System;
using System.Collections.Generic;
using System.Collections;
using System.Windows.Forms;
using LSPD_First_Response.Engine.Scripting.Entities;
using LSPD_First_Response.Mod.API;
using LSPD_First_Response.Mod.Callouts;
using Rage;

namespace GoodCallouts.Callouts
{
    using System.Drawing;

    [CalloutInfo("CrazyShooter", CalloutProbability.High)]
    class ShotsFiredCallout : Callout

 

And i also tried putting it above the namespace, but still no luck :\

What error give you?

It should only be something like this:

 

                    Blip blip;
                    blip = suspect.AttachBlip();
                    blip.Color = Color.Red;

Edited by alexguirre

-snip-

You have to add a reference to it, which means going to the right over to references, right-clicking, and hitting add reference. Then click Assemblies on the left, and search 'System.Drawing'. Check the box next to it, and hit OK. Should work after that. You did say you already did this though; what error is it giving you exactly?

Edited by FtDLulz

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.