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

Add configurable lock/unlock animations & prop support #242

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

citRaTTV
Copy link
Contributor

@citRaTTV citRaTTV commented Dec 9, 2023

Describe Pull request
Add configurable lock/unlock animation w/ prop support. New configuration parameters:

-- Vehicle lock settings
Config.LockToggleAnimation = {
    AnimDict = 'anim@mp_player_intmenu@key_fob@',
    Anim = 'fob_click',
    Prop = 'prop_cuff_keys_01',
    PropBone = 57005,
    WaitTime = 500,
}
Config.LockAnimSound = "keys"
Config.LockToggleSound = "lock"
Config.LockToggleDist = 8.0

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all it's functionality? yes
  • Does your code fit the style guidelines? yes
  • Does your PR fit the contribution guidelines? yes

@adtgamer
Copy link

I just don't understand where to put this code

@citRaTTV
Copy link
Contributor Author

I just don't understand where to put this code

If it gets merged into the resource, you'll just have to update it :)

@adtgamer
Copy link

you don't send me what you edited/?

@citRaTTV
Copy link
Contributor Author

you don't send me what you edited/?

It's all shown here in the Files changed tab https://github.com/qbcore-framework/qb-vehiclekeys/pull/242/files

@adtgamer
Copy link

I edited it but there was an error, you can't send it to me, it's already edited

@citRaTTV
Copy link
Contributor Author

I edited it but there was an error, you can't send it to me, it's already edited

You can download the files directly here https://github.com/citRaTTV/qb-vehiclekeys/tree/feat%2Flock-anim-config

@adtgamer
Copy link

I edited it but there was an error, you can't send it to me, it's already edited

You can download the files directly here https://github.com/citRaTTV/qb-vehiclekeys/tree/feat%2Flock-anim-config

THANCKS perfect

@citRaTTV citRaTTV force-pushed the feat/lock-anim-config branch from db176eb to 5594366 Compare January 17, 2024 15:03
@GhzGarage GhzGarage merged commit e357bfa into qbcore-framework:main Feb 7, 2024
2 checks passed
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.

3 participants