{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":458582043,"defaultBranch":"main","name":"qb-core","ownerLogin":"mjvanhaastert","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2022-02-12T16:49:27.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/23282917?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1645487181.2231748","currentOid":""},"activityList":{"items":[{"before":"b653eb769c074803c3b29657ed962882f4f4e70d","after":"b485fe0a0db2299cabdba9e0d96dd20347111b86","ref":"refs/heads/patch-3","pushedAt":"2024-02-10T22:24:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mjvanhaastert","name":"Man1C","path":"/mjvanhaastert","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/23282917?s=80&v=4"},"commit":{"message":"LookAtEntity\n\nThe QBCore.Functions.LookAtEntity function in Lua makes a player's character turn to face a specified entity in the game. It checks if the entity exists and if the input parameters are valid. It then calculates the direction to the entity and gradually adjusts the player's heading to match this direction. The function stops either when the player is facing the entity or when the specified timeout is reached.","shortMessageHtmlLink":"LookAtEntity"}},{"before":"3f33e3b09ab8c177c07ac44913340a5efe33dd74","after":"b4c295f6ba14657adb054d2f5ec43aa7ee8e07be","ref":"refs/heads/patch-2","pushedAt":"2024-02-10T22:03:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mjvanhaastert","name":"Man1C","path":"/mjvanhaastert","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/23282917?s=80&v=4"},"commit":{"message":"Update functions.lua\n\nforgot to remove the comment for local invoked = GetInvokingResource() and remove the hardcore variable","shortMessageHtmlLink":"Update functions.lua"}},{"before":"3d8cc5924a2eff2b2baee18e911e6fdc9edfee67","after":"3f33e3b09ab8c177c07ac44913340a5efe33dd74","ref":"refs/heads/patch-2","pushedAt":"2024-02-10T21:37:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mjvanhaastert","name":"Man1C","path":"/mjvanhaastert","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/23282917?s=80&v=4"},"commit":{"message":"Update functions.lua - PlayAnim\n\nThe runningAnim function is designed to play a specific animation for a player's ped (character) in FiveM. Here's a detailed breakdown of what the function does:\r\n\r\nThe function takes four parameters: animDict (the name of the animation dictionary), animName (the name of the animation within the dictionary), duration (the duration of the animation in milliseconds), and upperbodyOnly (a boolean indicating whether the animation should only affect the upper body of the ped).\r\n\r\nIt starts by creating a new promise, animPromise, which will be used to handle the asynchronous nature of loading and playing the animation.\r\n\r\nThe function then checks if animDict and animName are strings. If not, it rejects the promise with an error message and returns.\r\n\r\nIt checks if the animation dictionary exists. If not, it rejects the promise with an error message and returns.\r\n\r\nIt sets the animation flags based on the upperbodyOnly parameter. If upperbodyOnly is true, the flags are set to 16, otherwise, they are set to 0. If the duration is -1 (indicating the animation should loop indefinitely), the flags are set to 49.\r\n\r\nIt gets the player's ped and the current game time.\r\n\r\nIt enters a loop where it requests the animation dictionary and waits until it's loaded. If the dictionary isn't loaded within 5 seconds, it rejects the promise with an error message and returns.\r\n\r\nOnce the animation dictionary is loaded, it plays the animation on the player's ped using TaskPlayAnim.\r\n\r\nIt waits for a short time to allow the animation to start, then gets the duration of the animation using GetAnimDuration.\r\n\r\nIf the animation duration is 0 (indicating the animation doesn't exist), it rejects the promise with an error message and returns.\r\n\r\nIt calculates the full duration of the animation in milliseconds and sets the wait time to the minimum of the provided duration and the full duration.\r\n\r\nIt waits for the duration of the animation, then removes the animation dictionary.\r\n\r\nFinally, it resolves the promise with the current time, indicating when the animation concluded.","shortMessageHtmlLink":"Update functions.lua - PlayAnim"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAD93HWMwA","startCursor":null,"endCursor":null}},"title":"Activity ยท mjvanhaastert/qb-core"}