Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function()
- TriggerEvent('lester:createBlip', 77, 706.669, -966.898, 30.413)
- while true do
- Citizen.Wait(1)
- local playerPed = PlayerPedId()
- local coords = GetEntityCoords(playerPed)
- if GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), 706.669, -966.898, 30.413, true) <= 10 and not blip then
- DrawMarker(20, 706.669, -966.898, 30.413, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 102, 100, 102, 100, false, true, 2, false, false, false, false)
- if GetDistanceBetweenCoords(coords, 706.669, -966.898, 30.413, true) < 1.0 then
- DisplayHelpText(('Apasa E pentru a vinde bijuteriile'))
- if IsControlJustReleased(1, 51) then
- blip = true
- -- vrpJW.TriggerServerCallback('esx_ambulancejob:getItemAmount', function(quantity)
- local user_id = vRP.getUserId({source})
- local quantity = vRP.getInventoryItem({user_id,"jewels"})
- if (quantity > 20) then
- vrpJW.TriggerServerCallback('vrp_jewerly:conteggio', function(CopsConnected)
- if CopsConnected >= Config.RequiredCopsSell then
- FreezeEntityPosition(playerPed, true)
- TriggerEvent('mt:missiontext', ('goldsell'), 10000)
- Wait(10000)
- FreezeEntityPosition(playerPed, false)
- TriggerServerEvent('lester:vendita')
- blip = false
- else
- blip = false
- --TriggerEvent('esx:showNotification', _U('copsforsell') .. Config.RequiredCopsSell .. _U('copsforsell2'))
- end
- end)
- else
- blip = false
- --TriggerEvent('esx:showNotification', _U('notenoughgold'))
- end
- -- end, 'jewels')
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement