Skip to content

Re2team/aimedic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aimedic

a simple NPC Medic script for QBcore drag the file into your resources open config and set prices to match your servers economy use the command /medic enjoy let me know what improvements i can make this is my first script i have upload

You need to add this in your qb-ambulancejob client/main.lua

RegisterNetEvent('hospital:client:npcHospital', function()
    print("Hello")
    local bedId = GetAvailableBed()
    print(bedId)
    if bedId then
        TriggerServerEvent("hospital:server:SendToBed", bedId, true)
    else
        QBCore.Functions.Notify(Lang:t('error.beds_taken'), "error")
    end
end)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages