////////
Son düzenleme:
Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.
Merhaba lDoaherisTR
Verilen cevap sonrasında sorununuz çözüme ulaştı mı ?
Sorununuz çözüme ulaştı mı ?
screenshot-basic kurman lazım birde telefona discord webhook bağlamalısın.
Screenshot basic'i discord webhookuna tanımlarsan sorun kesinlikle çözülcektir
Cevap Konusu :Linkleri,görmek için Giriş yap veya üye ol.
"//": "REQUIRE
Linkleri,görmek için
Giriş yap veya üye ol.
or set false", |
RegisterNUICallback('takePhoto', function(data, cb)
CreateMobilePhone(1)
CellCamActivate(true, true)
takePhoto = true
Citizen.Wait(0)
if hasFocus == true then
SetNuiFocus(false, false)
hasFocus = false
end
while takePhoto do
Citizen.Wait(0)
if IsControlJustPressed(1, 27) then -- Toogle Mode
frontCam = not frontCam
CellFrontCamActivate(frontCam)
elseif IsControlJustPressed(1, 177) then -- CANCEL
DestroyMobilePhone()
CellCamActivate(false, false)
cb(json.encode({ url = nil }))
takePhoto = false
break
elseif IsControlJustPressed(1, 176) then -- TAKE.. PIC
exports['screenshot-basic']:requestScreenshotUpload(data.url, data.field, function(data)
local resp = json.decode(data)
DestroyMobilePhone()
CellCamActivate(false, false)
cb(json.encode({ url = resp.files[1].url }))
end)
takePhoto = false
end
HideHudComponentThisFrame(7)
HideHudComponentThisFrame(8)
HideHudComponentThisFrame(9)
HideHudComponentThisFrame(6)
HideHudComponentThisFrame(19)
HideHudAndRadarThisFrame()
end
Citizen.Wait(1000)
PhonePlayAnim('text', false, true)
end)
RegisterNUICallback('takePhoto', function(data, cb)
CreateMobilePhone(1)
CellCamActivate(true, true)
takePhoto = true
Citizen.Wait(0)
if hasFocus == true then
SetNuiFocus(false, false)
hasFocus = false
end
while takePhoto do
Citizen.Wait(0)
if IsControlJustPressed(1, 27) then -- Toogle Mode
frontCam = not frontCam
CellFrontCamActivate(frontCam)
elseif IsControlJustPressed(1, 177) then -- CANCEL
DestroyMobilePhone()
CellCamActivate(false, false)
cb(json.encode({ url = nil }))
takePhoto = false
break
elseif IsControlJustPressed(1, 176) then -- TAKE.. PIC
exports['screenshot-basic']:requestScreenshotUpload("WEBHOOK URL", data.field, function(data)
local resp = json.decode(data)
DestroyMobilePhone()
CellCamActivate(false, false)
cb(json.encode({ url = resp.attachments[1].proxy_url }))
end)
takePhoto = false
end
HideHudComponentThisFrame(7)
HideHudComponentThisFrame(8)
HideHudComponentThisFrame(9)
HideHudComponentThisFrame(6)
HideHudComponentThisFrame(19)
HideHudAndRadarThisFrame()
end
Citizen.Wait(1000)
PhonePlayAnim('text', false, true)
end)
gcphone/client/client.lua dan bunu bul
Kod:RegisterNUICallback('takePhoto', function(data, cb) CreateMobilePhone(1) CellCamActivate(true, true) takePhoto = true Citizen.Wait(0) if hasFocus == true then SetNuiFocus(false, false) hasFocus = false end while takePhoto do Citizen.Wait(0) if IsControlJustPressed(1, 27) then -- Toogle Mode frontCam = not frontCam CellFrontCamActivate(frontCam) elseif IsControlJustPressed(1, 177) then -- CANCEL DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = nil })) takePhoto = false break elseif IsControlJustPressed(1, 176) then -- TAKE.. PIC exports['screenshot-basic']:requestScreenshotUpload(data.url, data.field, function(data) local resp = json.decode(data) DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = resp.files[1].url })) end) takePhoto = false end HideHudComponentThisFrame(7) HideHudComponentThisFrame(8) HideHudComponentThisFrame(9) HideHudComponentThisFrame(6) HideHudComponentThisFrame(19) HideHudAndRadarThisFrame() end Citizen.Wait(1000) PhonePlayAnim('text', false, true) end)
bununla değiştir
Ve ardından webhook url kısmını kendine göre düzelt = fixKod:RegisterNUICallback('takePhoto', function(data, cb) CreateMobilePhone(1) CellCamActivate(true, true) takePhoto = true Citizen.Wait(0) if hasFocus == true then SetNuiFocus(false, false) hasFocus = false end while takePhoto do Citizen.Wait(0) if IsControlJustPressed(1, 27) then -- Toogle Mode frontCam = not frontCam CellFrontCamActivate(frontCam) elseif IsControlJustPressed(1, 177) then -- CANCEL DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = nil })) takePhoto = false break elseif IsControlJustPressed(1, 176) then -- TAKE.. PIC exports['screenshot-basic']:requestScreenshotUpload("WEBHOOK URL", data.field, function(data) local resp = json.decode(data) DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = resp.attachments[1].proxy_url })) end) takePhoto = false end HideHudComponentThisFrame(7) HideHudComponentThisFrame(8) HideHudComponentThisFrame(9) HideHudComponentThisFrame(6) HideHudComponentThisFrame(19) HideHudAndRadarThisFrame() end Citizen.Wait(1000) PhonePlayAnim('text', false, true) end)
gcphone/client/client.lua dan bunu bul
Kod:RegisterNUICallback('takePhoto', function(data, cb) CreateMobilePhone(1) CellCamActivate(true, true) takePhoto = true Citizen.Wait(0) if hasFocus == true then SetNuiFocus(false, false) hasFocus = false end while takePhoto do Citizen.Wait(0) if IsControlJustPressed(1, 27) then -- Toogle Mode frontCam = not frontCam CellFrontCamActivate(frontCam) elseif IsControlJustPressed(1, 177) then -- CANCEL DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = nil })) takePhoto = false break elseif IsControlJustPressed(1, 176) then -- TAKE.. PIC exports['screenshot-basic']:requestScreenshotUpload(data.url, data.field, function(data) local resp = json.decode(data) DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = resp.files[1].url })) end) takePhoto = false end HideHudComponentThisFrame(7) HideHudComponentThisFrame(8) HideHudComponentThisFrame(9) HideHudComponentThisFrame(6) HideHudComponentThisFrame(19) HideHudAndRadarThisFrame() end Citizen.Wait(1000) PhonePlayAnim('text', false, true) end)
bununla değiştir
Ve ardından webhook url kısmını kendine göre düzelt = fixKod:RegisterNUICallback('takePhoto', function(data, cb) CreateMobilePhone(1) CellCamActivate(true, true) takePhoto = true Citizen.Wait(0) if hasFocus == true then SetNuiFocus(false, false) hasFocus = false end while takePhoto do Citizen.Wait(0) if IsControlJustPressed(1, 27) then -- Toogle Mode frontCam = not frontCam CellFrontCamActivate(frontCam) elseif IsControlJustPressed(1, 177) then -- CANCEL DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = nil })) takePhoto = false break elseif IsControlJustPressed(1, 176) then -- TAKE.. PIC exports['screenshot-basic']:requestScreenshotUpload("WEBHOOK URL", data.field, function(data) local resp = json.decode(data) DestroyMobilePhone() CellCamActivate(false, false) cb(json.encode({ url = resp.attachments[1].proxy_url })) end) takePhoto = false end HideHudComponentThisFrame(7) HideHudComponentThisFrame(8) HideHudComponentThisFrame(9) HideHudComponentThisFrame(6) HideHudComponentThisFrame(19) HideHudAndRadarThisFrame() end Citizen.Wait(1000) PhonePlayAnim('text', false, true) end)
Evet kurulumu doğru yapmışsınLinkleri,görmek için Giriş yap veya üye ol.
Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!