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.

Can someone post some basic code examples for a total noob?

Featured Replies

I get paid to wite VBA scripts all day at work but this is my first experience with C# (btw side note, can you write callout mods in VB script?)

 

Anyway, I modified the callout example successfully and removed the vehicle and changed the ped model. Worked like a charm. When I tried to do more than that, however, LSPDFR crashed when loading the callout. 

I learned VBA myself, by looking at other people's scripts and reverse engineering them (or recording macros and reverse engineering them).

Could someone post a few examples of a complete callout script, so that new modders can tinker with it and learn by changing variables? 

 

For example if someone made a simple script that would:

1. Spawn ped at any nearby building

2. Have ped do animation X by default

3. Have ped animation change to Y when he spots the player

4. Have ped have a chance to react hostile or compliant

etc.

 

Then I could run with this and create 50 different callouts by changing the ped model/animation/callout text etc. This is kind of what I did with the example callout but any time I do more than that I screw it up because I am not that familiar with C#.

  • Author

There are some examples here: https://github.com/LMSDev/LSPDFR-API/tree/master/API Examples

You cannot use VB script at all. You could however use VB.NET, however this is so different from VB script that you might as well learn C#. Plus, all the examples are in C#.

Thanks. Based on my experience, and knowing zero about programming outside advanced VBA in Excel, is it realistic to expect to learn to make callouts relatively quickly by mimicking others work? or is C# too complex for that and I need to read guides on intros to it first?

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.