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.

Ending callout when car gets picked up by tow truck

Featured Replies

Hey there, I'm learning to mod on LSPDFR and wanted to make my own callouts plugin. I wanted to know how would I go about ending a callout when a car is being towed away.  (For example I'm using StopThePed towing). Probably something easy that I'm missing.

regularperson.png

  • Management Team

There are two separate problems really: 1) detecting if a c ar is being towed and b) ending the callout. Do you know what car you want to check? I have no idea of how StopThePed works, so you would have to look into how it does the towing a bit to figure out the best way on how to detect it. Ending your callout is as easy as calling End.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author

Yeah ending it is the simple part I just need to detect the car on the tow truck. Maybe even detect the car moving without a driver? I'll continue to try get it figured out.

regularperson.png

  • Author

I'll take a look see if I can cook something up thanks for the advice

 

regularperson.png

  • Author

My temporary work around for this right now is just to tell the callout to end when the car 10 meters away from the spawnpoint. Easiest way and works very well for what I'm working on.

regularperson.png

  • Author

When I tell you I sat here at 4am scrolling through the methods....I must've looked through all of them at least 20 times and I still missed the "IsOnAllWheels()" one. Anyways. It works perfectly, works on flatbeds aswell. Only problem is since the vehicle spawns slightly above ground the callout ends automatically before you arrive. An easy fix for that was to just do

Game.LocalPlayer.Character.DistanceTo(Car.Position) < 5f

and then start checking if vehicle is on all wheels

 

Thanks for the help @Rich and I predicted the future by saying "Probably something easy that I'm missing." 😁

Edited by xMG

regularperson.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...

Similar Content

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.