Giter Site home page Giter Site logo

esx-qalle-camerasystem's Introduction

esx-qalle-camerasystem

[NOTES]

  • This is a simple script i made along time ago, still useful.

  • This gives you the opportunity to have CCTV in some place or to add it into the sell drugs to npc script.

  • Example : I added this into my selldrugs to npc script. Which makes them take the phone and send it to police station.

function CallPolice()
    local currentPed = oldPed

    ESX.ShowNotification('I dont want this kind of stuff!')

    FreezeEntityPosition(currentPed, false)

    Citizen.Wait(2000)

    ESX.LoadAnimDict('cellphone@')

    TaskReactAndFleePed(currentPed, PlayerPedId())

    Citizen.Wait(1000)

    TaskPlayAnim(currentPed, 'cellphone@','cellphone_call_listen_base' ,3.0, -1, -1, 50, 0, false, false, false)

    Citizen.Wait(3000)

    if GetEntityHealth(currentPed) > 0 then

        local x,y,z = table.unpack(GetEntityCoords(currentPed))

        TriggerEvent('skinchanger:getSkin', function(skin)
            TriggerServerEvent('esx-qalle-camerasystem:addWitness', skin, "Drugvictim")
        end)

        TriggerServerEvent('esx_phone:send', 'police', 'Someone tried selling me drugs, I did get a photograph of him, sent it to you!', { x = x, y = y, z = z })
    end 

    currentlyDoingDeal = false

end
  • This make them be added to the witness list:
    TriggerEvent('skinchanger:getSkin', function(skin)
        TriggerServerEvent('esx-qalle-camerasystem:addWitness', skin, "Label")
    end)
  • You could easily make a cctv system and count everyone that walks in of an door with the code-snippet above ^

[REQUIREMENTS]

  • ESX
  • esx_skin
  • skinchanger

[INSTALLATION]

  1. Download: https://github.com/qalle-fivem/esx-qalle-camerasystem

  2. Add this in your server.cfg : start esx-qalle-camerasystem

[SCREENSHOTS]

esx-qalle-camerasystem's People

Contributors

qalle-git avatar

Stargazers

 avatar

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.