Add files via upload
This commit is contained in:
1 parent
7d9d4a030d
commit
f9709311af
20 files changed
+1701
-3894
No files matched your search
+13
-33
@@ -2,42 +2,22 @@ local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
CreateThread(function()
|
||||
local current = "s_m_m_doctor_01"
|
||||
lib.requestModel(current, Config.requestModelTime)
|
||||
SyrupLocation = CreatePed(0, current,Config.SyrupVendor.x,Config.SyrupVendor.y,Config.SyrupVendor.z-1, false, false)
|
||||
lib.requestModel(current, Config.RequestModelTime)
|
||||
local SyrupLocation = CreatePed(0, current,Config.SyrupVendor.x,Config.SyrupVendor.y,Config.SyrupVendor.z-1, Config.SyrupVendor.w, false, false)
|
||||
FreezeEntityPosition(SyrupLocation, true)
|
||||
SetEntityInvincible(SyrupLocation, true)
|
||||
exports['qb-target']:AddTargetEntity(SyrupLocation, {
|
||||
options = {
|
||||
{
|
||||
type = "client",
|
||||
label = "Get Task",
|
||||
icon = "fas fa-eye",
|
||||
event = "md-drugs:client:getsyruplocationtobuy"
|
||||
},
|
||||
},
|
||||
distance = 2.0
|
||||
})
|
||||
local options = {
|
||||
{ type = "client", label = "Get Task", icon = "fas fa-eye", event = "md-drugs:client:getsyruplocationtobuy", distance = 2.0},
|
||||
}
|
||||
if Config.OxTarget then
|
||||
exports.ox_target:addLocalEntity(SyrupLocation, options)
|
||||
else
|
||||
exports['qb-target']:AddTargetEntity(SyrupLocation, { options = options, distance = 2.0})
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getsyruplocationtobuy")
|
||||
AddEventHandler("md-drugs:client:getsyruplocationtobuy", function()
|
||||
|
||||
RegisterNetEvent("md-drugs:client:getsyruplocationtobuy", function()
|
||||
Notify(Lang.Lean.marked, "success")
|
||||
SpawnCarPedChase()
|
||||
QBCore.Functions.Notify("Car Has Been Marked On Your Map", "success")
|
||||
end)
|
||||
|
||||
RegisterNetEvent('md-drugs:client:consumelean', function(itemName)
|
||||
QBCore.Functions.Progressbar("use_lsd", "Have Fun!", 1750, false, true, {
|
||||
disableMovement = false,
|
||||
disableCarMovement = false,
|
||||
disableMouse = false,
|
||||
disableCombat = true,
|
||||
}, {}, {}, {}, function()
|
||||
ClearPedTasks(PlayerPedId())
|
||||
TriggerEvent("evidence:client:SetStatus", "widepupils", 300)
|
||||
AlienEffect()
|
||||
Wait(math.random(1000,5000))
|
||||
SetPedToRagdoll(PlayerPedId(), 1000,2000, 2)
|
||||
|
||||
|
||||
end)
|
||||
end)
|
||||
Reference in new issue
Block a user