Giter Club home page Giter Club logo

co_notify's Introduction

co_notify

screen shot 2017-08-07 at 12 18 15 pm SMS APP screen shot 2017-08-07 at 12 18 15 pm YouTube screen shot 2017-08-07 at 12 18 15 pm Twitter

NoPixel style phone notification.

[CLIENT] Send notification to player

exports['co_notify']:SendNotify('mesaj', "Title", "message")

[SERVER] Send message to source player.

TriggerClientEvent('co_notify:client:SendNotifys', source, { app = "twitter" , title = "Title", content = "message"   })

[SERVER] Send message to all players.

TriggerClientEvent('co_notify:client:SendNotifys', -1, { app = "twitter" , title = "Title", content = "message"  })

Sayaç

co_notify's People

Contributors

cokluk avatar liamdormon avatar

Stargazers

RIIZE ( Rise & Realise ) avatar  avatar Parinya T. avatar Jeay avatar ,ZIE avatar Waseem Hassan Shahid avatar Lorne Booker avatar Mert Ayhan avatar Yuriy Petleshkov avatar Aladin Chaouachi avatar Emir Kibar avatar

Watchers

Senlar avatar  avatar

co_notify's Issues

English translations

gcphone setup

This gcphone is for the most widely used gcphone, if your triggers have different text in their names, you have to find their location yourself.

[client/youtube.lua] youtube installation
Find the "youtube_Play" trigger and put our code in it
``
RegisterNUICallback('youtube_Play', function(data)
exports['co_notify']:SendNotify('youtube', data, "true") --CODE TO ADD!
end)


[client/client.lua] incoming message setting.
Search and find trigger "gcPhone:receiveMessage" then add the code just below if message.owner == 0 then.
 ``
 if message.owner == 0 then
    exports['co_notify']:SendNotify('message', message.transmitter.." Message from.", message.message) --CODE TO ADD!

[server/twitter.lua] twitter incoming post setting.
Search and find trigger "gcPhone:twitter_postTweets" then add below codes after local srcIdentifier = getPlayerID(source).
``
local xPlayer = ESX.GetPlayerFromId(source)
local players = GetPlayers()

for _, i in ipairs(players) do

TriggerClientEvent('co_notify:client:SendNotifys', i, { app = "twitter" , title = "@"..xPlayer.getName(), content = message , source = i })
end

You need to look straight
 ``
    local sourcePlayer = tonmber(source)
    local srcIdentifier = getPlayerID(source)
    local xPlayer = ESX.GetPlayerFromId(source)
    local players = GetPlayers()
    for _, i in ipairs(players) do
TriggerClientEvent('co_notify:client:SendNotifys', i, { app = "twitter" , title = "@"..xPlayer.getName(), content = message , source = i })
end
    TwitterPostTweet(message, image, sourcePlayer, srcIdentifier)

Do the same for twitter for yellow pages logic is exactly the same, trigger name is "gcPhone:yellow_postIlan", file [server/yellowpages.lua]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.