Giter Site home page Giter Site logo

prp-medicalai's Introduction

ProjectRP EMS AI Missions

Toggleable AI calls for EMS!

Video

https://streamable.com/p7c8xi

Uses:

qb-radialmenu,

qb-target

About:

Toggleable AI calls for the bored onduty medical staff!

future plans:

Add a leveling system,

different types of calls,

Fire calls,

Joint AI calls (EMS, Police, Fire),

#ps-dispatch configuration

cl_events.lua;

local function LocalInjuriedPerson(pedLocation)
    local locationInfo = getStreetandZone(pedLocation)
    local gender = GetPedGender()
    TriggerServerEvent("dispatch:server:notify", {
        dispatchcodename = "localcivdown", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
        dispatchCode = "10-70",
        firstStreet = locationInfo,
        gender = gender,
        model = nil,
        plate = nil,
        priority = 2, -- priority
        firstColor = nil,
        automaticGunfire = false,
        origin = {
            x = pedLocation.x,
            y = pedLocation.y,
            z = pedLocation.z
        },
        dispatchMessage = _U('persondown'), -- message
        job = { "ambulance" } -- jobs that will get the alerts
    })
end
exports('LocalInjuriedPerson', LocalInjuriedPerson)

sv_dispatchcodes;

    ["localcivdown"] =  {displayCode = '10-70', description = "Local Civilan Down", radius = 0, recipientList = {'ambulance'}, blipSprite = 126, blipColour = 3, blipScale = 1.5, blipLength = 2, sound = "dispatch", offset = "false", blipflash = "false"},

qb-radialmenu add event > 'prp-medicalai:client:startmission'

prp-medicalai's People

Contributors

csggale avatar csggale21 avatar xthrasherrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dafkedd fluffyss

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.