[FREE] [VORP] Telegram system rework

[FREE][VORP] Telegram system rework.

Send / Receive telegrams with new ways

PURPOSE :

This script is a telegram system that intend to be customizable and allows new ways to communicate with other players
After a misanderstood with another developper, i decided to release all my scripts that begin with this one.
I’ll add other soon like mappings in mexico bridges train tracks and other stuff

WHAT IT DOES :

  • Send / receive letters from / to other players
  • Can send anonymous letters
  • Create postal inventory near stations
  • Receive letters when not connected and retrieve them from your mailbox when you get back
  • Create mailbox ticket when register your mailbox for the first time
  • Continue to use your character when you read a letter or open your mailbox ticket
  • Change your letter reading animation
  • Change/add the bord that can be send (config file)
  • Setup the inventory slots of mailbox
  • Change registration cost
  • Add / Change sending message cost (to add taxes purpose)
  • Change the time travel for a player to send to another one
  • Change / add mailboxes locations (config file)
  • Use or not the bird model when message is send

DEPENDENCIES :

  • oxmysql *
  • VORP_Core
  • VORP_Inventory
  • Feather-menu
  • BCC-utils

INSTALLATION :

Add .sql rows to your database
Add “ensure Telegram” in your server.cfg after all dependencies
Drag&drop the folder in your server resources directory

IN GAME :

UPDATES :

  • V0.0.1 : First commit

KNOWN PROBLEMS :

  • The birds send to another players can be a little bit “glitchy” and crash on the walls and windows if you are in interiors but honestly, i wanted to let the script like that 'cause it given me serious lauthing times

  • The cities that are named in upper right side of the letters are not all implemented yet in the script so it will display hash instead of city/country name

FUTURE PLANS :

  • not for the moment

GREETINGS :

Fistsofury (GitHub - Fistsofury/fists-GlideMail: Functional Mail system using pigeons for VORP) for the original Fists-GlideMail script

If you want to help me with my scripts :slight_smile:

Feel free to use this script as you want 'cause it’s opensource but don’t forget credits! :wink:

Code is accessible Yes
Subscription-based No
Lines (approximately) ~300
Requirements N/A
Support No
2 Likes

I like it when the bird falls from above :rofl: :rofl: :rofl:

1 Like

you should see when it hits a window or a wall so x’) it makes me laugh every time lol

1 Like

just getting errors in console with this. Fresh install and all dependencies:
[ script:Telegram] SCRIPT ERROR: @Telegram/server/server.lua:234: attempt to index a nil value (field ‘integer index’)
[ script:Telegram] > rawQuery (@oxmysql/dist/build.js:26045)
[ script:Telegram] > processTicksAndRejections (node:internal/process/task_queues:

As soon as i go to open the Telegram station i get this error.

hi, thx for your informations, it seems to be a problem with oxmysql and vorp_inventory.
I can teel that beacause of the 234th line from serverside is for register your mailbox, it will be affected by your vorp_inventory and oxmysql version i’d like to know them if you can tell me! :slight_smile:

i have the latest version of oxmysql and vorp_inventory
oxmysql (2.12.0)
vorp_inventory (4.1)

can you hop in my discord so we can figure it out? 'cause i had double checked on my testing base and from fresh install and it worked for me.
as it, i can tell you what to modify and check

I’ll try to catch you tonight or tomorrow.
Yea, everything i have is a fresh install also, which is weird.

Getting the following error
SCRIPT ERROR: @Telegram/server/server.lua:234: attempt to index a nil value (field ‘integer index’)
[ script:Telegram] > new StackDumpError (@oxmysql/citizen:/scripting/v8/main.js:429)
[ script:Telegram] > (@oxmysql/citizen:/scripting/v8/main.js:449)
[ script:Telegram] > (@oxmysql/citizen:/scripting/v8/main.js:116)
[ script:Telegram] > Number.__cfx_wrap_9438 (@oxmysql/citizen:/scripting/v8/main.js:25)
[ script:Telegram] > (@oxmysql/citizen:/scripting/v8/main.js:31)
[ script:Telegram] > (@oxmysql/citizen:/scripting/v8/main.js:113)
[ script:Telegram] > rawQuery (@oxmysql/dist/build.js:26132)
[ script:Telegram] > process.processTicksAndRejections (node:internal/process/task_queues:105)

1 Like

hi! thx for your report, you have to check your resources priority order for that problem it seems that your oxmysql can’t reach your db with the script

Following this order but still the same error.
VORP_Core
VORP_Inventory
Feather-menu
BCC-utils
Telegram

my bad, i forget to tell you need oxmysql also

yes I do have it and it is already ensured

exports.oxmysql:query(‘SELECT Animation FROM mailboxes WHERE steamname = ? AND char_identifier = ?’, {Player,charIdentifier}, function(anim)
exports.vorp_inventory:closeInventory(Item.source)
TriggerClientEvent(“PlayAnim”,Item.source,Item.item.metadata,anim[1].Animation)
end)

are the lines that seems to be your problem, can yuo check your oxmysql and vorp_inventory version plz? 'cause if it’s up to date it must be working as i checked on new fresh install and it’s working for me

tell me your versions i’m gonna modify those lines to test if i can change them

My oxmysql version is ‘2.13.0’ and vorp_inventory version is version ‘4.2’

Hello there , every time i tried to send mail it says " Player absent , sent to thier mailbox " even when the player is standing right next to me, is there a way to fix this? i tried to find your discord but its not listed anywhere , or im blind, that could be it too lol