Advertisement
davedumas0

fiveM-debugtools.lua[updated 8-21-2017]

Aug 14th, 2017
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 22.28 KB | None | 0 0
  1.  
  2.  
  3. ---------------------------------------------------------------------------------------------------------------------------------
  4. --------------------------------------------put entity name or hash here---------------------------------------------------------
  5. ---------------------------------------------------------------------------------------------------------------------------------
  6. function things(modelHash)
  7.    stuff = modelHash
  8. end
  9. ----------------------------------------------------------------------------------------------------------------------------------
  10. ---------------------------------------------this sets delete gun toggle to off --------------------------------------------------
  11. ----------------------------------------------------------------------------------------------------------------------------------
  12.  deleteGunToggle = false
  13. ----------------------------------------------------------------------------------------------------------------------------------
  14. --------------------------------------------this gets info about spawned entity and player----------------------------------------
  15. ----------------------------------------------------------------------------------------------------------------------------------
  16.  
  17. Citizen.CreateThread(function()
  18.   while true do
  19.      Citizen.Wait(0)
  20.      playerInteriorID = GetInteriorFromEntity(GetPlayerPed(PlayerId()))  
  21.      playerPed = GetPlayerPed(PlayerId())
  22.      playerCoords = GetEntityCoords(GetPlayerPed(PlayerId()), true)
  23.      playerCoordsX = playerCoords.x
  24.      playerCoordsY = playerCoords.y
  25.      playerCoordsZ = playerCoords.z
  26.      playerHeading = GetEntityHeading(GetPlayerPed(PlayerId()))
  27.      PlayerRoomKey = GetRoomKeyFromEntity(GetPlayerPed(PlayerId()))
  28.      playerInteriorID = GetInteriorFromEntity(GetPlayerPed(PlayerId()))
  29.      entityRoomKey = GetRoomKeyFromEntity(a)
  30.      entityInteriorID = GetInteriorFromEntity(a)
  31.      entityCoords = GetEntityCoords(closestEntity, true)
  32.      interiorGroupID = GetInteriorGroupId(entityInteriorID)
  33.      ForceRoomForEntity(a, playerInteriorID, PlayerRoomKey)
  34.      EntityInterior = GetInteriorFromEntity(a)
  35.      EntityRoomKey = GetRoomKeyFromEntity(a)
  36. -----------------------------------------------------------------------------------------------------------------------------------------------------
  37. ---------------------------------this checks if the spawned entity exists and moves it as player pushes buttons---------------------------------------
  38. -----------------------------------------------------------------------------------------------------------------------------------------------------
  39.     if not DoesEntityExist(a) or DoesEntityExist(GetClosestObjectOfType(playerCoordsX, playerCoordsY, playerCoordsZ, 50.0, stuff, 0, 1, 0)) then
  40.      a = GetClosestObjectOfType(playerCoordsX, playerCoordsY, playerCoordsZ, 50.0, stuff, 0, 1, 0)
  41.     end
  42.     if DoesEntityExist(a) then
  43.      b = ObjToNet(a)     
  44. --this gets the entity coords
  45.         entityCoords = GetEntityCoords(a)
  46.         entityCoords1 = GetEntityCoords(b)     
  47. --this splits up the coords
  48.           entityX = entityCoords.x
  49.           entityY = entityCoords.y
  50.           entityZ = entityCoords.z
  51.           entityX1 = entityCoords1.x
  52.           entityY1 = entityCoords1.y
  53.           entityZ1 = entityCoords1.z         
  54. --this gets the entity rotation
  55.         entityRot = GetEntityRotation(a)
  56.         entityRot1 = GetEntityRotation(b)      
  57. --this splits up the rotation
  58.           entityRotX = entityRot.x
  59.           entityRotY = entityRot.y
  60.           entityRotZ = entityRot.z
  61.           entityRotX1 = entityRot1.x
  62.           entityRotY1 = entityRot1.y
  63.           entityRotZ1 = entityRot1.z         
  64.     end
  65. --if left shift is pressed then movement speed is slower
  66.     if IsControlPressed(0, 21) then
  67.         moveSpeed = 0.01
  68.         moveSpeed1 = 0.2
  69.     else
  70.         moveSpeed = 0.1
  71.         moveSpeed1 = 1.3
  72.      end
  73.  
  74. --this sets "a" to nil if no entity was spawned and no entity of type found near player
  75.       if not DoesEntityExist(a) then
  76.        a = nil
  77.       end
  78. --home key
  79. -- if control "home" key is pressed then it spawns the entity of your choosing   
  80.      if IsControlPressed(0, 213) then
  81.         Citizen.Wait(500)
  82.          spawnStuff(stuff)
  83.      end
  84. --left key
  85. -- if control "left" key is pressed then it adds 0.01 to the x coord
  86.      if DoesEntityExist(a) and IsControlPressed(0, 174) then               
  87.         entityX = entityCoords.x + moveSpeed
  88.         --sets the entity's position with result
  89.         SetEntityCoords(a, entityX, entityY, entityZ)
  90.         entityX1 = entityCoords1.x + moveSpeed
  91.         --sets the entity's position with result
  92.         SetEntityCoords(b, entityX1, entityY1, entityZ1)           
  93.      end
  94.        
  95.      
  96. --right key
  97. -- if control "right" key is pressed then it subtract's 0.01 from the x coord
  98.      if DoesEntityExist(a) and IsControlPressed(0, 175) then
  99.         --entityCoords = GetEntityCoords(a)
  100.         entityX = entityCoords.x - moveSpeed
  101.         --sets the entity's position with result
  102.         SetEntityCoords(a, entityX, entityY, entityZ)
  103.         --entityCoords = GetEntityCoords(a)
  104.         entityX1 = entityCoords1.x - moveSpeed
  105.         --sets the entity's position with result
  106.         SetEntityCoords(b, entityX1, entityY1, entityZ1)           
  107.      end
  108. --pageup
  109. -- if control "pageUp" key is pressed then it adds 0.01 to the z coord
  110.      if DoesEntityExist(a) and IsControlPressed(0, 10) then    
  111.         entityZ = entityCoords.z + moveSpeed
  112. --sets the entity's position with result
  113.         SetEntityCoords(a, entityX, entityY, entityZ)
  114.         entityZ1 = entityCoords1.z + moveSpeed
  115. --sets the entity's position with result
  116.         SetEntityCoords(b, entityX1, entityY1, entityZ1)           
  117.      end
  118. --pagedown
  119. -- if control "pageDown" key is pressed then it subtract's 0.01 from the z coord
  120.      if DoesEntityExist(a) and IsControlPressed(0, 11) then
  121.         entityZ = entityCoords.z - moveSpeed
  122. --sets the entity's position with result
  123.         SetEntityCoords(a, entityX, entityY, entityZ)
  124.         entityZ1 = entityCoords1.z - moveSpeed
  125. --sets the entity's position with result
  126.         SetEntityCoords(b, entityX1, entityY1, entityZ1)       
  127.     end
  128. --up key
  129. -- if control "up" key is pressed then it subtract's 0.01 from the y coord
  130.      if DoesEntityExist(a) and IsControlPressed(0, 27) then    
  131.         entityY = entityCoords.y - moveSpeed     
  132. --sets the entity's position with result
  133.         SetEntityCoords(a, entityX, entityY, entityZ)
  134.         entityY1 = entityCoords1.y - moveSpeed   
  135. --sets the entity's position with result
  136.         SetEntityCoords(b, entityX1, entityY1, entityZ1)       
  137.      end
  138. --down key
  139. -- if control "down" key is pressed then it adds 0.01 to the y coord
  140.      if DoesEntityExist(a) and IsControlPressed(0, 173) then
  141.         entityY = entityCoords.y + moveSpeed
  142.         SetEntityCoords(a, entityX, entityY, entityZ)
  143.         entityY1 = entityCoords1.y + moveSpeed
  144.         SetEntityCoords(b, entityX1, entityY1, entityZ1)           
  145.      end
  146.  
  147.      --leftshift AND "E"
  148. -- if left shift AND "E" key are pressed then it deletes the entity
  149. --and any other entity close to the player with the same hashkey
  150.      if IsControlPressed(0, 21) and IsControlPressed(0, 38) then
  151.         if DoesEntityExist(a) or DoesEntityExist(closestEntity) then
  152.          deleteStuff()
  153.         end
  154.      end
  155. --numberpad "+" key
  156. -- if numberpad "+" key is pressed then it adds 0.1 to the entity's heading(spins the thing)
  157.      if DoesEntityExist(a) and IsControlPressed(0, 96) then
  158.         entityRotZ = entityRotZ + moveSpeed1     
  159. --sets the entity's heading with result
  160.         SetEntityRotation(a, entityRotX, entityRotY, entityRotZ)
  161.         entityRotZ1 = entityRotZ1 + moveSpeed1   
  162. --sets the entity's heading with result
  163.         SetEntityRotation(b, entityRotX1, entityRotY1, entityRotZ1)    
  164.      end
  165. --numberpad "-" key
  166. -- if numberpad "-" key is pressed then it subtract's 0.1 from the entity's heading(spins the thing)
  167.      if DoesEntityExist(a) and IsControlPressed(0, 97) then
  168.         entityRotZ = entityRotZ - moveSpeed1           
  169.         --sets the entity's heading with result
  170.         SetEntityRotation(a, entityRotX, entityRotY, entityRotZ)
  171.         entityRotZ1 = entityRotZ1 - moveSpeed1         
  172.         --sets the entity's heading with result
  173.         SetEntityRotation(b, entityRotX1, entityRotY1, entityRotZ1)    
  174.      end
  175.      --the "[" key
  176.         if DoesEntityExist(a) and IsControlPressed(0, 39) then
  177.         --entityRot = GetEntityRotation(a)
  178.         entityRotY = entityRotY + moveSpeed1
  179.         --sets the entity's rotation with result
  180.         SetEntityRotation(a, entityRotX, entityRotY, entityRotZ)
  181.         --entityRot = GetEntityRotation(a)
  182.         entityRotY1 = entityRotY1 + moveSpeed1
  183.         --sets the entity's rotation with result
  184.         SetEntityRotation(b, entityRotX1, entityRotY1, entityRotZ1)    
  185.      end
  186.      -- the "]" key
  187.         if (DoesEntityExist(a) and IsControlPressed(0, 40)) then
  188.         --entityRot = GetEntityRotation(a)     
  189.         entityRotY = entityRotY - moveSpeed1       
  190.         --sets the entity's rotation with result
  191.         SetEntityRotation(a, entityRotX, entityRotY, entityRotZ)
  192.             --entityRot = GetEntityRotation(a)     
  193.         entityRotY1 = entityRotY1 - moveSpeed1     
  194.         --sets the entity's rotation with result
  195.         SetEntityRotation(b, entityRotX1, entityRotY1, entityRotZ1)
  196.      end
  197.      -- the "-" key
  198.         if (DoesEntityExist(a) and IsControlPressed(0, 84)) then
  199.         --entityRot = GetEntityRotation(a)     
  200.         entityRotX = entityRotX - moveSpeed1       
  201.         --sets the entity's rotation with result
  202.         SetEntityRotation(a, entityRotX, entityRotY, entityRotZ)
  203.             --entityRot = GetEntityRotation(a)     
  204.         entityRotX1 = entityRotX1 - moveSpeed1     
  205.         --sets the entity's rotation with result
  206.         SetEntityRotation(b, entityRotX1, entityRotY1, entityRotZ1)
  207.      end
  208.      -- the "=" key
  209.         if (DoesEntityExist(a) and IsControlPressed(0, 83)) then
  210.         --entityRot = GetEntityRotation(a)     
  211.         entityRotX = entityRotX + moveSpeed1       
  212.         --sets the entity's rotation with result
  213.         SetEntityRotation(a, entityRotX, entityRotY, entityRotZ)
  214.             --entityRot = GetEntityRotation(a)     
  215.         entityRotX1 = entityRotX1 + moveSpeed1     
  216.         --sets the entity's rotation with result
  217.         SetEntityRotation(b, entityRotX1, entityRotY1, entityRotZ1)
  218.      end     
  219.     end
  220. end)
  221.  
  222. function deleteStuff()
  223.  
  224.  --this delete's the entity that was spawned or
  225.  --any close by entity with the the same hash key
  226.  if DoesEntityExist(closestEntity) and not DoesEntityExist(a) then
  227.  --closestEntity = NetworkGetNetworkIdFromEntity(closestEntity)    
  228.  SetEntityAsMissionEntity(closestEntity,true,true)
  229.  DeleteObject(closestEntity)
  230.  end
  231.  if DoesEntityExist(a) then
  232.   --a = NetworkGetNetworkIdFromEntity(a)
  233.   SetEntityAsMissionEntity(a,true,true)
  234.   DeleteObject(a)
  235.  end
  236.  if DoesEntityExist(spawnedVeh) then
  237.  
  238.  SetEntityAsMissionEntity(spawnedVeh,true,true)
  239.  DeleteVehicle(spawnedVeh)
  240.  DeleteEntity(spawnedVeh)
  241.  end
  242.  if DoesEntityExist(spawnPed) or DoesEntityExist(closestPed) then
  243.  SetEntityAsMissionEntity(spawnPed,true,true)
  244.  SetEntityAsMissionEntity(closestPed,true,true)
  245.  DeletePed(spawnPed)
  246.  end
  247. end
  248. -- this sets the entity's transparency
  249. function invisibleStuff()
  250.  SetEntityAsMissionEntity(a, true, true)
  251.   SetEntityAlpha(a, 255)
  252. end
  253. function unfreezeStuff(unfreezer)
  254.   FreezeEntityPosition(unfreezer, false)
  255.   FreezeEntityPosition(unfreezer, false)  
  256. end
  257. function freezeStuff(freezer)
  258.   FreezeEntityPosition(freezer, true)
  259.   FreezeEntityPosition(freezer, true)
  260. end
  261.  
  262.  
  263. ----------------------------
  264. --this is the ACTUAL spawner
  265. function spawnStuff(stuff)
  266. Citizen.CreateThread(function()
  267. --this requests the model of what is to be spawned
  268.     if not HasModelLoaded(stuff) then
  269.      Citizen.Wait(0)
  270.      RequestModel(stuff)
  271. --if model is a veh then spawn a veh     
  272.     end
  273.     if IsModelAVehicle(stuff) then
  274.      spawnedVeh = CreateVehicle(stuff, playerCoordsX, playerCoordsY, playerCoordsZ, playerHeading, 0, 0, 0)
  275.     end
  276. --spawn the object 
  277.     a = ObjToNet(CreateObjectNoOffset(stuff, playerCoordsX, playerCoordsY, playerCoordsZ, 1, 0, 0))
  278.     SetEntityCollision(a, false, false)
  279.     FreezeEntityPosition(a, true)
  280.   SetEntityHeading(a, playerHeading)
  281. end)
  282. end
  283. ------------------------------------------------------------------------------------------------------------------
  284. ----------------this is the "delete gun active" text that gets displayed if the delete gun is on------------------
  285. ------------------------------------------------------------------------------------------------------------------
  286.  Citizen.CreateThread(function()
  287.     while true do
  288.       Citizen.Wait(0)
  289.       if deleteGunToggle~=false then      
  290.   local position = "DELETE GUN ACTIVE"
  291.   local offset = {x = 0.290, y = 0.850}
  292.   local rgb = {r = 255, g = 0, b = 0}
  293.   local alpha = 255
  294.   local scale = 1.0
  295.   local font = 0
  296.             SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
  297.             SetTextFont(font)
  298.             SetTextScale(scale, scale)
  299.             SetTextWrap(0.0, 1.0)
  300.             SetTextCentre(false)
  301.             SetTextDropshadow(2, 2, 0, 0, 0)
  302.             SetTextEdge(1, 0, 0, 0, 205)
  303.             SetTextEntry("STRING")
  304.             AddTextComponentString(position)           
  305.             DrawText(offset.x, offset.y)      
  306.       end    
  307.     end    
  308. end)
  309.  
  310. ------------------------------------------------------------------------------------------------------------------
  311. -------------------------------this is the delete gun activation controller----------------------------------------
  312. ------------------------------------------------------------------------------------------------------------------
  313. Citizen.CreateThread(function()
  314.     while true do
  315.       Wait(2000)     
  316.         if gary ~=false and deleteGunToggle ~=false then
  317.             deleteGunToggle = false
  318.         end
  319.     end
  320. end)
  321. ----------------------------------------------------------------------------------------------------------------------
  322. ------------------------------------this is the "meat" of the delete gun----------------------------------------------
  323. -------------------if the delete gun is active the it deletes what ever the player is looking at----------------------
  324. ----------------------------------------------------------------------------------------------------------------------
  325. Citizen.CreateThread(function()
  326.     pedDeleted = "a ped got DELETED: "
  327.     vehDeleted = "a veh got DELETED: "
  328.     objDeleted = "an obj get DELETED: "
  329.    while true do  
  330.      Wait(1000)
  331.       gary = IsControlPressed(0, 178)
  332.       if gary ~=false and deleteGunToggle ~=true then
  333.         deleteGunToggle = true
  334.          Wait(0)
  335.       end
  336.       Wait(0)
  337.     dude5 = PlayerId()
  338.     dude6 = IsPlayerFreeAiming(dude5)
  339.     if dude6 ~=false then
  340.      dude10 = Citizen.InvokeNative(0x2975C866E6713290, dude5, Citizen.PointerValueInt(), Citizen.ResultAsString(dude10))
  341.      Citizen.Trace(''..tostring(dude10))
  342.      Citizen.Trace(''..tostring(GetEntityModel(dude10)))
  343.      Citizen.Trace(''..tostring(GetEntityCoords(dude10)))    
  344.     end
  345.      if dude6 ~=false and deleteGunToggle ==true then
  346.      Wait(0)
  347.      --BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity *entity) // 2975C866E6713290 8866D9D0
  348.     dude10 = Citizen.InvokeNative(0x2975C866E6713290, dude5, Citizen.PointerValueInt(), Citizen.ResultAsString(dude10))
  349.     dude12 = GetEntityModel(dude10)
  350.     dude16 = GetEntityCoords(dude10)
  351.     Citizen.Trace(''..tostring(dude10))
  352.     Citizen.Trace(''..tostring(dude12))
  353.     Citizen.Trace(''..tostring(dude16))
  354.       isMission = IsEntityAMissionEntity(dude10)
  355.       isPed = IsEntityAPed(dude10)
  356.       isAnObj = IsEntityAnObject(dude10)
  357.       isVeh = IsEntityAVehicle(dude10)
  358.       object_to_net = ObjToNet(dude10)
  359.       net_to_object = NetToObj(dude10)  
  360.         if isMission ~=0 then
  361.             SetEntityAsMissionEntity(dude10, true, true)
  362.               if isPed ~=false then
  363.               --BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity *entity) // 2975C866E6713290 8866D9D0
  364.               dude10 = Citizen.InvokeNative(0x2975C866E6713290, dude5, Citizen.PointerValueInt(), Citizen.ResultAsString(dude10))
  365.               isMission = IsEntityAMissionEntity(dude10)
  366.                SetEntityAsMissionEntity(dude10, true, true)
  367.                 delPedCoords = GetEntityCoords(dude10)
  368.                  delPedModel = GetEntityModel(dude10)
  369.                  DeleteEntity(dude10)
  370.                   TriggerServerEvent('deleteGunActivity', pedDeleted, tostring(delPedCoords), delPedModel)
  371.                  SetModelAsNoLongerNeeded(dude12)
  372.               end
  373.               if isVeh ~=false then
  374.               --BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity *entity) // 2975C866E6713290 8866D9D0
  375.               dude10 = Citizen.InvokeNative(0x2975C866E6713290, dude5, Citizen.PointerValueInt(), Citizen.ResultAsString(dude10))
  376.               isMission = IsEntityAMissionEntity(dude10)
  377.                SetEntityAsMissionEntity(dude10, true, true)
  378.                 delVehCoords = GetEntityCoords(dude10)
  379.                  delVehModel = GetEntityModel(dude10)
  380.                 DeleteVehicle(dude10)
  381.                 DeleteEntity(dude10)
  382.                  SetModelAsNoLongerNeeded(dude12)
  383.               end
  384.               if isAnObj ~=false then
  385.               --BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity *entity) // 2975C866E6713290 8866D9D0
  386.               dude10 = Citizen.InvokeNative(0x2975C866E6713290, dude5, Citizen.PointerValueInt(), Citizen.ResultAsString(dude10))
  387.               isMission = IsEntityAMissionEntity(dude10)
  388.                 SetEntityAsMissionEntity(object_to_net, true, true)
  389.                  SetEntityAsMissionEntity(net_to_object, true, true)
  390.                  object_to_net = ObjToNet(dude10)
  391.                   net_to_object = NetToObj(object_to_net)
  392.                    playerName = GetPlayerName(object_to_net, dude5, true)
  393.                 objIndex = GetObjectIndexFromEntityIndex(dude10)
  394.                     objCoords = GetEntityCoords(dude10)
  395.                     objModel =  GetEntityModel(dude10)
  396.                 DeleteEntity(object_to_net)
  397.                  DeleteEntity(net_to_object)
  398.                  SetModelAsNoLongerNeeded(dude12)                  
  399.               end        
  400.         end    
  401.      end
  402.   end
  403. end)
  404.  
  405.     SetSwimMultiplierForPlayer(dude5, 1.49)
  406.     SetRunSprintMultiplierForPlayer(dude5, 1.49)
  407. RequestScaleformMovie("instructional_buttons")
  408.  
  409. --------------------------------------------------------------------------------------------------
  410. ----------------------this gets a player if they are not the current player-----------------------
  411. --------------------------------------------------------------------------------------------------
  412. Citizen.CreateThread(function()
  413.      
  414.      currentPlayerName = GetPlayerName(PlayerId())
  415.      temp3 = {currentPlayerName, handle}
  416.      temp0 = GetPlayerPed(PlayerId())
  417.      temp1 = -1
  418.      while temp1 <=3 do
  419.       Citizen.Wait(10000)
  420.       temp2 = IntToPlayerindex(temp1)
  421.        if GetPlayerPed(temp2) ~= temp0 then
  422.            
  423.        end 
  424.        if DoesEntityExist(GetPlayerPed(temp2)) then
  425.         playerModel = GetEntityModel(GetPlayerPed(temp2))
  426.        if not HasModelLoaded(playerModel) then
  427.         RequestModel(playerModel)
  428.        end
  429.         name =  GetPlayerName(temp2)
  430.        else
  431.        name = GetPlayerName(temp2)
  432.        end     
  433.      
  434.       handle = NetworkHandleFromPlayer(temp1, 13)
  435.       temp1 = temp1+1
  436.       Citizen.Trace("current playerID: "..tostring(PlayerId()))
  437.       Citizen.Trace("current player ped ID: "..tostring(temp0))
  438.       Citizen.Trace("iterator: "..tostring(temp1))   
  439.       Citizen.Trace("player pedID: "..tostring(GetPlayerPed(temp2)))
  440.       Citizen.Trace("player name: "..tostring(name))
  441.       Citizen.Trace("handle: "..tostring(handle))
  442.       Citizen.Trace("is r* banned: "..tostring(IsSocialclubBanned()))
  443.       if temp1 >= 3 then
  444.         temp1 = -1
  445.       end
  446.      end  
  447. end)
  448.  
  449. Citizen.CreateThread(function()
  450.     while true do  
  451.      Citizen.Wait(3000)
  452.      --Citizen.Trace("get hash key of cinscreen: "..tostring(GetHashKey("cinscreen")))
  453.      --Citizen.Trace("is interior ready: "..tostring(IsInteriorReady(258561)))
  454.      --Citizen.Trace("playerId: "..tostring(PlayerId()))
  455.      --Citizen.Trace("get name of this thread: "..tostring(GetIdOfThisThread()))
  456.      --Citizen.Trace("Player position: "..tostring(GetEntityCoords(GetPlayerPed(PlayerId()))))
  457.      --Citizen.Trace("player rotation: "..tostring(GetEntityRotation(GetPlayerPed(PlayerId()))))
  458.      --Citizen.Trace("player ped id: "..tostring(NetworkGetPlayerIndexFromPed(PlayerPedId())))
  459.      --Citizen.Trace("get player ped: "..tostring(temp0))
  460.      --Citizen.Trace("int to player index: "..tostring(temp2))
  461.      --Citizen.Trace("temp1: "..tostring(temp1))
  462.      --Citizen.Trace("spawned entity ID: "..tostring(a))
  463.      --Citizen.Trace("interior ready: "..tostring(IsInteriorReady(258561)))
  464.      --Citizen.Trace("get closest object of type: "..tostring(GetClosestObjectOfType(GetEntityCoords(GetPlayerPed(PlayerId()), true), 20.1, stuff, 0, 0, 0)))
  465.     --Citizen.Trace("get network id of player: "..tostring(NetworkGetNetworkIdFromEntity(GetPlayerPed())))
  466.      --Citizen.Trace("current interior ID: "..tostring(GetInteriorFromEntity(GetPlayerPed(-1))))
  467.      --Citizen.Trace("spawned entity coords: "..tostring(GetEntityCoords(a)))
  468.      --Citizen.Trace("spawned entity heading: "..tostring(GetEntityHeading(a)))
  469.      --Citizen.Trace("spawned entity rotation: "..tostring(GetEntityRotation(a)))      
  470.      --Citizen.Trace("spawned entityID : "..tostring(a))
  471.      --Citizen.Trace("get render cam : "..tostring(renderCam))
  472.      --Citizen.Trace("spawned vehID : "..tostring(spawnedVeh))
  473.      --Citizen.Trace("has veh model loaded : "..tostring(HasModelLoaded(veh)))
  474.      --Citizen.Trace("spawned pedID : "..tostring(spawnPed))
  475.      --Citizen.Trace("does cam exist : "..tostring(DoesCamExist(26379945)))
  476.      --Citizen.Trace("closest entity of type: "..tostring(closestEntity))
  477.      --Citizen.Trace("entity roomKey: "..tostring(entityRoomKey))
  478.      --Citizen.Trace("entity interiorID: "..tostring(entityInteriorID))
  479.      --Citizen.Trace("bunker interiorID: "..tostring(bunkerInterior))    
  480.      --Citizen.Trace("net to ped playerped: "..tostring(PlayerId()))
  481.      --Citizen.Trace("playerped: "..tostring(GetPlayerPed(PlayerId())))
  482.      --Citizen.Trace("interior groupID: "..tostring(interiorGroupID))
  483.      --Citizen.Trace("spawned entity visible: "..tostring(IsEntityVisible(a)))
  484.      --Citizen.Trace("spawned veh visible: "..tostring(IsEntityVisible(spawnedVeh)))
  485.      --Citizen.Trace("spawned ped visible: "..tostring(IsEntityVisible(spawnPed)))
  486.      --Citizen.Trace("spawned ped variations: "..tostring(pedVariationCount))
  487.      --Citizen.Trace("spawned ped current variation: "..tostring(pedVariation))
  488.      --Citizen.Trace("spawned ped current  drawable variation: "..tostring(pedDrawableVariation))
  489.      --Citizen.Trace("spawned ped number of drawable variation: "..tostring(numberOfDrawableVariations))
  490.      --Citizen.Trace("closest pedCount: "..tostring(closestPedCount))
  491.      --Citizen.Trace("closest ped: "..tostring(closestPed))
  492.      --Citizen.Trace("closest veh: "..tostring(closestVeh))
  493.      --Citizen.Trace("nearby ped count: "..tostring(pedCount))
  494.      --Citizen.Trace("nearby peds: "..tostring(pedz))
  495.      --Citizen.Trace("get closest veh(buggyB): "..tostring(GetClosestVehicle(887.824, -3236.251, -98.8946, 1.0, -769147461, 70)))
  496.      --Citizen.Trace("get closest veh(buggyA): "..tostring(GetClosestVehicle(890.708, -3236.804, -98.8961, 50.0, -769147461, 70)))
  497. end
  498. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement