Advertisement
Guest User

sexo oral

a guest
Dec 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.64 KB | None | 0 0
  1. local screenW, screenH = guiGetScreenSize()
  2. showSelect = 0
  3. function drawSelect(result)
  4.     smoothMoveCamera(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316, 1556.9377441406, -1366.6959228516, 336.90127563477, 1542.630859375, -1352.0926513672, 329.47155761719, 5000)
  5.     setTimer(function()
  6.         data = result
  7.         showSelect = 1
  8.         if data[1] ~= nil then
  9.             ped1 = createPed(data[1].skin, 1549.2901611328, -1353.9388427734, 329.46710205078, 220)
  10.             setPedAnimation(ped1, "kissing", "gfwave2")
  11.             addEventHandler("onClientClick", localPlayer, clickPed1)
  12.             outputChatBox("esta el ped")
  13.         end
  14.         if data[2] ~= nil then
  15.             ped2 = createPed(data[2].skin, 1543.9499511719, -1354.9273681641, 329.47155761719, 220)
  16.             setPedAnimation(ped2, "cop_ambient", "coplook_think")
  17.         end
  18.         if data[3] ~= nil then
  19.             ped3 = createPed(data[3].skin, 1546.9483642578, -1350.5411376953, 329.47082519531, 220)
  20.             setPedAnimation(ped3, "kissing", "gfwave2")
  21.         end
  22.         if data[4] ~= nil then
  23.             ped4 = createPed(data[4].skin, 1541.1925048828, -1355.4235839844, 329.46987915039, 220)
  24.             setPedAnimation(ped4, "lowrider", "m_smkstnd_loop")
  25.         end
  26.         if data[5] ~= nil then
  27.             ped5 = createPed(data[5].skin, 1543.0793457031, -1348.0944824219, 329.46832275391, 220)
  28.             setPedAnimation(ped5, "gangs", "prtial_gngtlkb")
  29.         end
  30.     end, 5050, 1)
  31. end
  32. addEvent("showSelect", true)
  33. addEventHandler("showSelect", localPlayer, drawSelect)
  34.  
  35. function clickPed1(button, state, absX, absY, wx, wy, wz, element)
  36.     if (element) and (getElementType(element)=="ped") and (button=="left") and (state=="down") then
  37.         outputChatBox("Ped 1")
  38.         triggerServerEvent("spawnPed1", localPlayer)
  39.         closeSelect()
  40.     end
  41. end
  42.  
  43. addEventHandler("onClientRender", localPlayer, function()
  44.     outputChatBox("render")
  45.     if showSelect == 1 then
  46.         if isElement(ped1) then
  47.             dxDrawTextOnElement(ped1, data[1].nombre, 1.179, 30, 0, 0, 0, 255, 2)
  48.             dxDrawTextOnElement(ped1, data[1].nombre, 1.2, 30, 255, 255, 255, 255, 2)
  49.             local screenx, screeny, worldx, worldy, worldz = getCursorPosition()
  50.             local px, py, pz = getCameraMatrix()
  51.             local hit, x, y, z, elementHit = processLineOfSight ( px, py, pz, worldx, worldy, worldz )
  52.             local cX, cY = getCursorPosition()
  53.             if hit then
  54.                 if elementHit and elementHit == ped1 then
  55.                     dxDrawText("Nombre: "..data[1].nombre, cX, cY, 500, 200, tocolor(255, 255, 255, 255))
  56.                 end
  57.             end
  58.         end
  59.     end
  60. end)
  61.  
  62. function closeSelect()
  63.     showSelect = 0
  64.     if ped1 or ped2 or ped3 or ped4 or ped5 then
  65.         destroyElement(ped1 or ped2 or ped3 or ped4 or ped5)
  66.     end
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement