question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Are Task hashes still valid ?

See original GitHub issue

@crosire @CamxxCore can someone confirm if this list of hashes

https://pastebin.com/2gFqJ3Px
https://pastebin.com/R9iK6M9W

are still valid ? or whom should I ask ?

For example : i create task ped.Task.UseMobilePhone() and check using TASK_USE_MOBILE_PHONE or TASK_USE_MOBILE_PHONE_TIMED Function.Call<int>(Hash.GET_SCRIPT_TASK_STATUS, ped, (uint)task); this returns 7 => task status = none.

or check using CTaskMobilePhone Function.Call<bool>(Hash.GET_IS_TASK_ACTIVE, ped, (uint)task); this returns false => task status = none.

However my ped is still using the phone, but these natives return results which say otherwise. I think these task hashes have changed over time due to updates.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Tanjitsucommented, Jun 23, 2018

Specifically for

“in my script, in some situations I wanted the ped to stop using the phone”

You should be able to just run something like ped.Tasks.ClearAll(); But then you might only need to use ped.Tasks.ClearSecondary();

Or you could use BlockPermanentEvents / AlwaysKeepTask to change from using default behaviours.

For animations you could look at https://www.gta5-mods.com/scripts/animation-viewer https://alexguirre.github.io/animations-list/

OpenIV will also let you browse animations now i think.

1reaction
Tanjitsucommented, Jun 14, 2018

The “task” is just a label for grouping, its reverse engineered. Rockstar does not follow standards for all its grouped assets, or obfuscates them purposefully. Take the vehicles as an example.

Most follow the pattern - model name = display name But then “some” don’t - FireTruk = FireTruck

Which is why other natives exist such as “IS_PED_RUNNING_MOBILE_PHONE_TASK”

Are you trying to find out of the Ped has a phone or has the phone Animation active… IS_PLAYING_PHONE_GESTURE_ANIM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are Task hashes still valid ? · Issue #791
The Task IDs from that dump are still valid. Can't say whether any new tasks have been added since then, though.
Read more >
Difference between Input hash and task hash - Prodigy Support
I have been working with the prodigy db, and im confused as to what the difference is between _input_hash and _task_hash which are...
Read more >
hash(into:) | Apple Developer Documentation
Returns a Boolean value indicating whether two values are equal. Available when Success conforms to Sendable and Failure conforms to Error . static ......
Read more >
VerifyFileHash Task - MSBuild
Learn how MSBuild uses the VerifyFileHash task to verify that a file matches the expected file hash, and fails if it doesn't match....
Read more >
What is hashing and how does it work?
A hash table stores key and value pairs in a list that is accessible through its index. Because key and value pairs are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found