#Custom app request
27 messages · Page 1 of 1 (latest)
If you're looking to just send a message to the players phone then an app wouldn't be needed.
Simply utilize this export to send a message to a players phone
exports["lb-phone"]:SendMessage(from, to, message, attachments, cb, channelId)```
All the information for the arguments can be found below.
-- from: string, the phone number of the sender
-- to: string, the phone number of the receiver
-- message: string, the message to send, or nil
-- attachments: table | string, an array of attachments (links), can be json encoded or nil
-- cb: function, the callback function
-- channelId string, the channel id to send the message to, can be nil
no it needs to be an app haha bc it needs to get cords etc
so it needs to be an app but thanks
Why would it need to be an app to get cords?
bc it needs to send an message to the person that is near the speedcamera (so cords + radius)
Why wouldn't you be able to pass this data over in a message or notification?
So what you're saying is that you want some what of an UI built to display how far you're away and in what direction the camera is?
no you dont know what i am trying to say
Then would you care to actually explain a little more?
So
If you are close to an speedcamera
It sends an notify to the phone: You are near an speedcamera watch your speed the max speed is: (Speed km/h)
with an app
Okay, this here would just be using this export below.
-- data: table, the notification data
exports["lb-phone"]:SendNotification({
app = "Twitter", -- the app to send the notification to (optional)
title = "Test", -- the title of the notification
content = "This is a test notification", -- the description of the notification
})```
Now when you say "with an app"
You just want an app so it would display an icon in the notification?
Yeah also
Or do you want the app to have other functionality?
Okay, regarding this part I'm not 100% sure how you'd achieve it but once I'm back at my pc I will take a look at a few things.
Also what resource are you using for speedcameras?
custom one
can i send in your dm?
Sure, I'll take a look at it once I'm back at my pc.