Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Herd type changed to Entity for success merge #4

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

Sarbatore
Copy link
Contributor

Description

  • definition of _0x67A43EA3F6FE0076 as _CLEAR_HERD(Herd herd)
  • definition of _0xE0961AED72642B80 as _DELETE_HERD(Herd herd)
  • definition of _0x9E13ACC38BA8F9C3 as _IS_PED_IN_HERD(Herd herd, Ped ped)
  • definition of _0x408D1149C5E39C1E as _REMOVE_HERD_PED(Herd herd, Ped ped)

Examples

local Herd = CreateHerd()

print(Citizen.InvokeNative(0x9E13ACC38BA8F9C3, animalPed)) -- _IS_PED_IN_HERD Print false
AddPedToFlock(Herd, animalPed)
print(Citizen.InvokeNative(0x9E13ACC38BA8F9C3, animalPed)) -- _IS_PED_IN_HERD Print true
Citizen.InvokeNative(0x408D1149C5E39C1E, Herd, animalPed) -- _REMOVE_HERD_PED
print(Citizen.InvokeNative(0x9E13ACC38BA8F9C3, animalPed)) -- _IS_PED_IN_HERD Print false

Citizen.InvokeNative(0x67A43EA3F6FE0076, Herd) -- _CLEAR_HERD
Citizen.InvokeNative(0xE0961AED72642B80, Herd) -- _DELETE_HERD
print(IsHerdValid(Herd)) -- Print false

Source

  • script_rel/act_caunc_rustling.ysc.c (l5855 ; l5856 ; l5913 ; l5915)

Notes

  • The R* scripts that use herds are the standalone ones

@Sarbatore
Copy link
Contributor Author

The pull request had been closed, that was why you didn't see changes. Now it should be better, sorry for this..

@outsider31000
Copy link
Member

thank you

@outsider31000 outsider31000 merged commit ac4d16b into VORPCORE:main Jan 20, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants