├── .github
└── workflows
│ └── lint.yml
├── LICENSE
├── README.md
├── client
├── customprop.lua
├── gumballs.lua
├── icecream.lua
├── main.lua
├── sluckybuckydonut.lua
└── slushies.lua
├── config.lua
├── fxmanifest.lua
├── images
├── banana_gumball.png
├── blueberry_gumball.png
├── blueslushy.png
├── bubblegum_gumball.png
├── cherry_gumball.png
├── chocolateicecream.png
├── cookiesandcreamicecream.png
├── greenslushy.png
├── mint_gumball.png
├── minticecream.png
├── orangeslushy.png
├── rainbowslushy.png
├── redslushy.png
├── superdonut.png
├── vanillaicecream.png
└── yellowslushy.png
├── server
└── server.lua
└── sound
├── bubblegumstand.ogg
├── deepfried.ogg
├── pour-slushy.ogg
└── scoopicecream.ogg
/.github/workflows/lint.yml:
--------------------------------------------------------------------------------
1 | name: Lint
2 | on: [push, pull_request]
3 | jobs:
4 | lint:
5 | name: Lint Resource
6 | runs-on: ubuntu-latest
7 | steps:
8 | - name: Checkout
9 | uses: actions/checkout@v2
10 | - name: Lint
11 | uses: iLLeniumStudios/fivem-lua-lint-action@v1.0.7
12 | with:
13 | capture: "junit.xml"
14 | args: "-t --formatter JUnit"
15 | - name: Generate Lint Report
16 | if: always()
17 | uses: mikepenz/action-junit-report@v3
18 | with:
19 | report_paths: "**/junit.xml"
20 | check_name: Linting Report
21 | fail_on_failure: false
22 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # cr-storeextras
2 |
3 | # Developed By Constant Development
4 |
5 | [Constant Development Discord](https://discord.gg/gSQbshCNv4)
6 | [Constant Development Tebex](https://constant-development.tebex.io/)
7 |
8 | ## Dependencies
9 | - [qb-target](https://github.com/Renewed-Scripts/qb-target)
10 | - [qb-lock](https://github.com/Nathan-FiveM/qb-lock)
11 |
12 | ## Features
13 | * Consumeables & Benefits for each 'Consumeable'
14 | * Slushy Machine System's
15 | * Slucky Bucky Donut Machine System's
16 | * Ice Cream Freezer System's
17 | * GumBall Stand System's
18 | * Minigame Configuration
19 | * Custom Prop Configuration
20 |
21 | ## Optional Additions
22 | * qb-lock (QBCore NP Inspired Lock System)
23 | * ps-ui (Project Sloth UI Lock System)
24 | * qb-skillbar (QBCore Skillbar)
25 |
26 | ## To Do List
27 |
28 | * Modulate Entire System
29 |
30 | # How To Install
31 |
32 | * If you encounter any issues whilst Installing or Using/Enforcing this Resource, please feel free to Open a Ticket within the [Constant Development Discord](https://discord.gg/gSQbshCNv4).
33 |
34 | ## QBCore Shared Lua Additions
35 | * Place the following snippet inside of qb-core/shared/items.lua
36 | ```
37 | ['redslushy'] = { ['name'] = 'redslushy', ['label'] = 'Red Slushy', ['weight'] = 750, ['type'] = 'item', ['image'] = 'redslushy.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Damn a Slushy...', ["created"] = nil, ["decay"] = 1.0 },
38 | ['blueslushy'] = { ['name'] = 'blueslushy', ['label'] = 'Blue Slushy', ['weight'] = 750, ['type'] = 'item', ['image'] = 'blueslushy.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Damn a Slushy...', ["created"] = nil, ["decay"] = 1.0 },
39 | ['greenslushy'] = { ['name'] = 'greenslushy', ['label'] = 'Green Slushy', ['weight'] = 750, ['type'] = 'item', ['image'] = 'greenslushy.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Damn a Slushy...', ["created"] = nil, ["decay"] = 1.0 },
40 | ['yellowslushy'] = { ['name'] = 'yellowslushy', ['label'] = 'Yellow Slushy', ['weight'] = 750, ['type'] = 'item', ['image'] = 'yellowslushy.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Damn a Slushy...', ["created"] = nil, ["decay"] = 1.0},
41 | ['orangeslushy'] = { ['name'] = 'orangeslushy', ['label'] = 'Orange Slushy', ['weight'] = 750, ['type'] = 'item', ['image'] = 'orangeslushy.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Damn a Slushy...', ["created"] = nil, ["decay"] = 1.0 },
42 | ['rainbowslushy'] = { ['name'] = 'rainbowslushy', ['label'] = 'Rainbow Slushy', ['weight'] = 750, ['type'] = 'item', ['image'] = 'rainbowslushy.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Damn a Slushy...', ["created"] = nil, ["decay"] = 1.0 },
43 | ["superdonut"] = { ["name"] = "superdonut", ["label"] = "Slucky Bucky Donut", ["weight"] = 200, ["type"] = "item", ["image"] = "superdonut.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A Donut filled with Juices!", ["created"] = nil, ["decay"] = 3.0 },
44 | ["vanillaicecream"] = { ["name"] = "vanillaicecream", ["label"] = "Vanilla Ice Cream", ["weight"] = 350, ["type"] = "item", ["image"] = "vanillaicecream.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A bowl filled with Vanilla Ice Cream!", ["created"] = nil, ["decay"] = 0.5 },
45 | ["chocolateicecream"] = { ["name"] = "chocolateicecream", ["label"] = "Chocolate Ice Cream", ["weight"] = 350, ["type"] = "item", ["image"] = "chocolateicecream.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A bowl filled with Chocolate Ice Cream!", ["created"] = nil, ["decay"] = 0.5 },
46 | ["minticecream"] = { ["name"] = "minticecream", ["label"] = "Mint Ice Cream", ["weight"] = 350, ["type"] = "item", ["image"] = "minticecream.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A bowl filled with Mint Ice Cream!", ["created"] = nil, ["decay"] = 0.5 },
47 | ["cookiesandcreamicecream"] = { ["name"] = "cookiesandcreamicecream", ["label"] = "Cookies & Cream Ice Cream", ["weight"] = 350, ["type"] = "item", ["image"] = "cookiesandcreamicecream.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A bowl filled with Cookies & Cream Ice Cream!", ["created"] = nil, ["decay"] = 0.5 },
48 | ["bubblegum_gumball"] = { ["name"] = "bubblegum_gumball", ["label"] = "BubbleGum GumBall", ["weight"] = 50, ["type"] = "item", ["image"] = "bubblegum_gumball.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A BubbleGum GumBall from the local Store!", ["created"] = nil, ["decay"] = 6.5 },
49 | ["blueberry_gumball"] = { ["name"] = "blueberry_gumball", ["label"] = "Blueberry GumBall", ["weight"] = 50, ["type"] = "item", ["image"] = "blueberry_gumball.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A Blueberry GumBall from the local Store!", ["created"] = nil, ["decay"] = 6.5 },
50 | ["banana_gumball"] = { ["name"] = "banana_gumball", ["label"] = "Banana GumBall", ["weight"] = 50, ["type"] = "item", ["image"] = "banana_gumball.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A Banana GumBall from the local Store!", ["created"] = nil, ["decay"] = 6.5 },
51 | ["mint_gumball"] = { ["name"] = "mint_gumball", ["label"] = "Mint GumBall", ["weight"] = 50, ["type"] = "item", ["image"] = "mint_gumball.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A Mint GumBall from the local Store!", ["created"] = nil, ["decay"] = 6.5 },
52 | ["cherry_gumball"] = { ["name"] = "cherry_gumball", ["label"] = "Cherry GumBall", ["weight"] = 50, ["type"] = "item", ["image"] = "cherry_gumball.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A Cherry GumBall from the local Store!", ["created"] = nil, ["decay"] = 6.5 },
53 | ```
54 | * If you are using a base Inventory(Without Decay) remove "created" and "decay"
55 | * If you are using a base Inventory(With Decay) remove "created"
56 |
57 | # Specific Resource Installation
58 |
59 | ## qb-smallresources
60 |
61 | ### Step One
62 | * Place the following snippet inside of qb-smallresources/config.lua
63 | ```
64 | ConsumeablesEatSuperDonut = {
65 | ["superdonut"] = math.random(5, 30),
66 | }
67 |
68 | ConsumeablesSlushy = {
69 | ["redslushy"] = math.random(15, 25),
70 | ["orangeslushy"] = math.random(15, 25),
71 | ["blueslushy"] = math.random(15, 25),
72 | ["yellowslushy"] = math.random(15, 25),
73 | ["greenslushy"] = math.random(15, 25),
74 | ["rainbowslushy"] = math.random(15, 25),
75 | }
76 |
77 | ConsumeablesEatIceCream = {
78 | ["vanillaicecream"] = math.random(12, 20),
79 | ["chocolateicecream"] = math.random(12, 20),
80 | ["minticecream"] = math.random(15, 24),
81 | ["cookiesandcreamicecream"] = math.random(18, 26),
82 | }
83 |
84 | ConsumeablesEatGumBall = {
85 | ["bubblegum_gumball"] = math.random(6, 8),
86 | ["blueberry_gumball"] = math.random(6, 8),
87 | ["banana_gumball"] = math.random(6, 8),
88 | ["mint_gumball"] = math.random(6, 8),
89 | ["cherry_gumball"] = math.random(6, 8),
90 | }
91 | ```
92 |
93 | ### Step Two
94 | * Place the following snippet inside of qb-smallresources/client/consumeables.lua
95 | ```
96 | RegisterNetEvent('consumables:client:slushy', function(itemName)
97 | local ped = PlayerPedId()
98 | TriggerEvent('animations:client:EmoteCommandStart', {"cup"})
99 | QBCore.Functions.Progressbar("drink_something", "Drinking Slushy...", 3500, false, true, {
100 | disableMovement = false,
101 | disableCarMovement = false,
102 | disableMouse = false,
103 | disableCombat = true,
104 | }, {}, {}, {}, function() -- Done
105 | ClearPedTasks(PlayerPedId())
106 | TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
107 | TriggerEvent('animations:client:EmoteCommandStart', {"c"})
108 | SetPedArmour(ped, 3)
109 | TriggerServerEvent("QBCore:Server:SetMetaData", "thirst", QBCore.Functions.GetPlayerData().metadata["thirst"] + ConsumeablesSlushy[itemName])
110 | TriggerServerEvent('hud:server:RelieveStress', math.random(2, 4))
111 | end)
112 | end)
113 |
114 | local function RunFast()
115 | local startStamina = 3
116 |
117 | SetRunSprintMultiplierForPlayer(PlayerId(), 1.2)
118 | while startStamina > 0 do
119 | Wait(1000)
120 | startStamina = startStamina - 1
121 | --RestorePlayerStamina(PlayerId(), 1.0)
122 | end
123 | startStamina = 0
124 | SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
125 | end
126 |
127 | RegisterNetEvent('consumables:client:EatSuperDonut', function(itemName)
128 | TriggerEvent('animations:client:EmoteCommandStart', {"donut"})
129 | QBCore.Functions.Progressbar("eat_something", "Eating..", 5000, false, true, {
130 | disableMovement = false,
131 | disableCarMovement = false,
132 | disableMouse = false,
133 | disableCombat = true,
134 | }, {}, {}, {}, function() -- Done
135 | ClearPedTasks(PlayerPedId())
136 | TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
137 | TriggerEvent('animations:client:EmoteCommandStart', {"c"})
138 | RunFast()
139 | TriggerServerEvent("QBCore:Server:SetMetaData", "hunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + ConsumeablesEatSuperDonut[itemName])
140 | TriggerServerEvent('hud:server:RelieveStress', math.random(2, 8))
141 | end)
142 | end)
143 |
144 | local function BrainFreeze()
145 | local startStamina = 3
146 | ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.15)
147 | SetRunSprintMultiplierForPlayer(PlayerId(), 1.5)
148 | while startStamina > 0 do
149 | Wait(2500)
150 | ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.18)
151 | startStamina = startStamina - 1
152 | --RestorePlayerStamina(PlayerId(), 1.0)
153 | end
154 | startStamina = 0
155 | ShakeGameplayCam('SMALL_EXPLOSION_SHAKE', 0.15)
156 | SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
157 | end
158 |
159 | RegisterNetEvent('consumables:client:EatIceCream', function(itemName)
160 | TriggerEvent('animations:client:EmoteCommandStart', {"bowl"})
161 | QBCore.Functions.Progressbar("eat_icecream", "Eating...", 5000, false, true, {
162 | disableMovement = false,
163 | disableCarMovement = false,
164 | disableMouse = false,
165 | disableCombat = true,
166 | }, {}, {}, {}, function() -- Done
167 | ClearPedTasks(PlayerPedId())
168 | TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
169 | TriggerEvent('animations:client:EmoteCommandStart', {"c"})
170 | BrainFreeze()
171 | TriggerServerEvent("QBCore:Server:SetMetaData", "hunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + ConsumeablesEatIceCream[itemName])
172 | TriggerServerEvent('hud:server:GainStress', math.random(2, 5))
173 | end)
174 | end)
175 |
176 | local function GumBall()
177 | local startStamina = 3
178 | SetRunSprintMultiplierForPlayer(PlayerId(), 1.2)
179 | while startStamina > 0 do
180 | Wait(500)
181 | startStamina = startStamina - 1
182 | end
183 | startStamina = 0
184 | SetRunSprintMultiplierForPlayer(PlayerId(), 1.0)
185 | end
186 |
187 | RegisterNetEvent('consumables:client:EatGumBall', function(itemName)
188 | TriggerEvent('animations:client:EmoteCommandStart', {"eat"})
189 | QBCore.Functions.Progressbar("eat_gumball", "Eating...", 5000, false, true, {
190 | disableMovement = false,
191 | disableCarMovement = false,
192 | disableMouse = false,
193 | disableCombat = true,
194 | }, {}, {}, {}, function() -- Done
195 | ClearPedTasks(PlayerPedId())
196 | TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
197 | TriggerEvent('animations:client:EmoteCommandStart', {"c"})
198 | GumBall()
199 | TriggerServerEvent("QBCore:Server:SetMetaData", "hunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + ConsumeablesEatGumBall[itemName])
200 | end)
201 | end)
202 | ```
203 | * If you don't want the "Effects", make sure to remove 'RunFast()', 'Gumball()' and 'SetPedArmour'.
204 |
205 | ### Step Three
206 | * Place the following snippet inside of qb-smallresources/server/consumeables.lua
207 | ```
208 | QBCore.Functions.CreateUseableItem("rainbowslushy", function(source, item)
209 | local src = source
210 | local Player = QBCore.Functions.GetPlayer(src)
211 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
212 | TriggerClientEvent("consumables:client:slushy", src, item.name)
213 | end
214 | end)
215 |
216 | QBCore.Functions.CreateUseableItem("redslushy", function(source, item)
217 | local src = source
218 | local Player = QBCore.Functions.GetPlayer(src)
219 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
220 | TriggerClientEvent("consumables:client:slushy", src, item.name)
221 | end
222 | end)
223 |
224 | QBCore.Functions.CreateUseableItem("greenslushy", function(source, item)
225 | local src = source
226 | local Player = QBCore.Functions.GetPlayer(src)
227 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
228 | TriggerClientEvent("consumables:client:slushy", src, item.name)
229 | end
230 | end)
231 |
232 | QBCore.Functions.CreateUseableItem("yellowslushy", function(source, item)
233 | local src = source
234 | local Player = QBCore.Functions.GetPlayer(src)
235 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
236 | TriggerClientEvent("consumables:client:slushy", src, item.name)
237 | end
238 | end)
239 |
240 | QBCore.Functions.CreateUseableItem("orangeslushy", function(source, item)
241 | local src = source
242 | local Player = QBCore.Functions.GetPlayer(src)
243 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
244 | TriggerClientEvent("consumables:client:slushy", src, item.name)
245 | end
246 | end)
247 |
248 | QBCore.Functions.CreateUseableItem("blueslushy", function(source, item)
249 | local src = source
250 | local Player = QBCore.Functions.GetPlayer(src)
251 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
252 | TriggerClientEvent("consumables:client:slushy", src, item.name)
253 | end
254 | end)
255 |
256 | QBCore.Functions.CreateUseableItem("superdonut", function(source, item)
257 | local src = source
258 | local Player = QBCore.Functions.GetPlayer(src)
259 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
260 | TriggerClientEvent("consumables:client:EatSuperDonut", src, item.name)
261 | end
262 | end)
263 |
264 | QBCore.Functions.CreateUseableItem("vanillaicecream", function(source, item)
265 | local src = source
266 | local Player = QBCore.Functions.GetPlayer(src)
267 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
268 | TriggerClientEvent("consumables:client:EatIceCream", src, item.name)
269 | end
270 | end)
271 |
272 | QBCore.Functions.CreateUseableItem("chocolateicecream", function(source, item)
273 | local src = source
274 | local Player = QBCore.Functions.GetPlayer(src)
275 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
276 | TriggerClientEvent("consumables:client:EatIceCream", src, item.name)
277 | end
278 | end)
279 |
280 | QBCore.Functions.CreateUseableItem("minticecream", function(source, item)
281 | local src = source
282 | local Player = QBCore.Functions.GetPlayer(src)
283 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
284 | TriggerClientEvent("consumables:client:EatIceCream", src, item.name)
285 | end
286 | end)
287 |
288 | QBCore.Functions.CreateUseableItem("cookiesandcreamicecream", function(source, item)
289 | local src = source
290 | local Player = QBCore.Functions.GetPlayer(src)
291 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
292 | TriggerClientEvent("consumables:client:EatIceCream", src, item.name)
293 | end
294 | end)
295 |
296 | QBCore.Functions.CreateUseableItem("bubblegum_gumball", function(source, item)
297 | local src = source
298 | local Player = QBCore.Functions.GetPlayer(src)
299 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
300 | TriggerClientEvent("consumables:client:EatGumBall", src, item.name)
301 | end
302 | end)
303 |
304 | QBCore.Functions.CreateUseableItem("blueberry_gumball", function(source, item)
305 | local src = source
306 | local Player = QBCore.Functions.GetPlayer(src)
307 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
308 | TriggerClientEvent("consumables:client:EatGumBall", src, item.name)
309 | end
310 | end)
311 |
312 | QBCore.Functions.CreateUseableItem("banana_gumball", function(source, item)
313 | local src = source
314 | local Player = QBCore.Functions.GetPlayer(src)
315 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
316 | TriggerClientEvent("consumables:client:EatGumBall", src, item.name)
317 | end
318 | end)
319 |
320 | QBCore.Functions.CreateUseableItem("mint_gumball", function(source, item)
321 | local src = source
322 | local Player = QBCore.Functions.GetPlayer(src)
323 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
324 | TriggerClientEvent("consumables:client:EatGumBall", src, item.name)
325 | end
326 | end)
327 |
328 | QBCore.Functions.CreateUseableItem("cherry_gumball", function(source, item)
329 | local src = source
330 | local Player = QBCore.Functions.GetPlayer(src)
331 | if Player.Functions.RemoveItem(item.name, 1, item.slot) then
332 | TriggerClientEvent("consumables:client:EatGumBall", src, item.name)
333 | end
334 | end)
335 | ```
336 |
337 | ### Step Four
338 | * Understand that this 'Step' is only needed if you have Config.Framework.Logs set to 'true'. Being said, insert the following Snippet into qb-smallresources/server/logs.lua 'local Webhooks'
339 | ```
340 | ['constantdevelopmentstoreextras'] = 'YOUR_DISCORD_WEBHOOK',
341 | ```
342 |
343 | ## jim-consumeables
344 |
345 | ### Step One
346 | * Note: If you don't want the Benefits, than remove them from the certain stands.
347 | * Example: Slushies have an Armor and Stress Benefit, you can remove them by setting the 'Factors' to 0.
348 | ```
349 | -- Slushy
350 | ["redslushy"] = { emote = "cup", time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 3, type = "drink", stats = { thirst = math.random(15, 25), }},
351 | ["blueslushy"] = { emote = "cup", time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 3, type = "drink", stats = { thirst = math.random(15, 25), }},
352 | ["greenslushy"] = { emote = "cup", time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 3, type = "drink", stats = { thirst = math.random(15, 25), }},
353 | ["yellowslushy"] = { emote = "cup", time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 3, type = "drink", stats = { thirst = math.random(15, 25), }},
354 | ["orangeslushy"] = { emote = "cup", time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 3, type = "drink", stats = { thirst = math.random(15, 25), }},
355 | ["rainbowslushy"] = { emote = "cup", time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = math.random(3, 8), type = "drink", stats = { thirst = math.random(15, 30), }},
356 | -- Super Donut
357 | ["superdonut"] = { emote = "donut", time = math.random(5000, 6000), stress = math.random(2, 8), heal = 0, armor = 0, type = "food", stats = { effect = "stamina", time = math.random(2500, 15000), amount = 1, hunger = math.random(10, 20), canOD = false }},
358 | -- Ice Cream
359 | ["vanillaicecream"] = { emote = "eat", time = math.random(2500, 5000), stress = math.random(2, 4), heal = 0, armor = 0, type = "food", stats = { hunger = math.random(5, 15), }},
360 | ["chocolateicecream"] = { emote = "eat", time = math.random(2500, 5000), stress = math.random(2, 4), heal = 0, armor = 0, type = "food", stats = { hunger = math.random(5, 15), }},
361 | ["minticecream"] = { emote = "eat", time = math.random(2500, 5000), stress = math.random(2, 4), heal = 0, armor = 0, type = "food", stats = { hunger = math.random(5, 15), }},
362 | ["cookiesandcreamicecream"] = { emote = "eat", time = math.random(2500, 5000), stress = math.random(2, 4), heal = 0, armor = 0, type = "food", stats = { hunger = math.random(5, 15), }},
363 | -- Gumballs
364 | ["bubblegum_gumball"] = { emote = "eat", time = math.random(1000, 2500), stress = 3, heal = math.random(1, 3), armor = 0, type = "food", stats = { hunger = math.random(1, 5), }},
365 | ["blueberry_gumball"] = { emote = "eat", time = math.random(1000, 2500), stress = 3, heal = math.random(1, 3), armor = 0, type = "food", stats = { hunger = math.random(1, 5), }},
366 | ["mint_gumball"] = { emote = "eat", time = math.random(1000, 2500), stress = 3, heal = math.random(1, 3), armor = 0, type = "food", stats = { hunger = math.random(1, 5), }},
367 | ["cherry_gumball"] = { emote = "eat", time = math.random(1000, 2500), stress = 3, heal = math.random(1, 3), armor = 0, type = "food", stats = { hunger = math.random(1, 5), }},
368 | ```
369 |
370 | # Extra Installation Factors
371 |
372 | ## Factor One
373 | * Within the 'images' File you will find Images relating to each Item.
374 | * If you wish to use these Images, you may.
375 |
376 | * Inserting an Image can be done with base QBCore Inventory an LJ Inventory by placing the Image inside of qb/lj-inventory/html/images
377 |
378 | ## Factor Two
379 | * Within the 'sound' File you will find a Sound relating to the 'Functions
380 | * If you wish to use these Sounds, you may.
381 |
382 | * Inserting a Sound would be done by locating your interact-sound file and further locating 'Config.InteractSound' and setting it to 'true'
383 |
384 |
385 | https://www.dmca.com/r/m15qp3y
386 |
--------------------------------------------------------------------------------
/client/customprop.lua:
--------------------------------------------------------------------------------
1 | local function CreateProp(propCoords, propModel)
2 | local coords = propCoords
3 | PropModel = propModel
4 | RequestModel(PropModel)
5 | while not HasModelLoaded(PropModel) do
6 | Wait(3)
7 | end
8 | PropObject = CreateObject(PropModel, coords.x, coords.y, coords.z - 1, true, true)
9 | PlaceObjectOnGroundProperly(PropObject)
10 | SetEntityHeading(PropObject, coords.w)
11 | SetEntityInvincible(PropObject, true)
12 | end
13 |
14 | Citizen.CreateThread(function()
15 | for _, v in pairs(Config.CustomProps) do
16 | if v.Enabled then
17 | CreateProp(v.PropCoords, v.PropModel)
18 | end
19 | end
20 | end)
21 |
--------------------------------------------------------------------------------
/client/gumballs.lua:
--------------------------------------------------------------------------------
1 | local QBCore = exports['qb-core']:GetCoreObject()
2 |
3 | RegisterNetEvent('cr-storeextras:client:BubbleGumStand')
4 | AddEventHandler('cr-storeextras:client:BubbleGumStand', function()
5 | local ped = PlayerPedId()
6 | QBCore.Functions.TriggerCallback('cr-storeextras:server:GumBallStandCooldown', function(result)
7 | if not result then
8 | if Config.Framework.Minigame == 'qb-lock' then
9 | local seconds = math.random(5, 10)
10 | local circles = math.random(3, 5)
11 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
12 | if success then
13 | if Config.Framework.InteractSound == true then
14 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "bubblegumstand", 0.3)
15 | end
16 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
17 | QBCore.Functions.Progressbar("bubblegum", "Waiting on a Gumball...", 10000, false, true, {
18 | disableMovement = true,
19 | disableCarMovement = true,
20 | disableMouse = false,
21 | disableCombat = true,
22 | }, {}, {}, {}, function()
23 | StoreExtraNotifications(1, Config.Notifications["BubbleGumGive"], Config.Notifications["okok_Title"])
24 | ClearPedTasks(PlayerPedId())
25 | TriggerServerEvent('cr-storeextras:server:GiveBubbleGum')
26 | if Config.Cooldowns.Cooldown == true then
27 | TriggerServerEvent('cr-storeextras:server:SetGumballStandCooldown')
28 | end
29 | end, function()
30 | ClearPedTasks(PlayerPedId())
31 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
32 | end)
33 | else
34 | ClearPedTasks(PlayerPedId())
35 | StoreExtraNotifications(3, Config.Notifications["BubbleGumStandFail"], Config.Notifications["okok_Title"])
36 | end
37 | elseif Config.Framework.Minigame == 'ps-ui' then
38 | exports['ps-ui']:Circle(function(success)
39 | if success then
40 | if Config.Framework.InteractSound == true then
41 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "bubblegumstand", 0.3)
42 | end
43 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
44 | QBCore.Functions.Progressbar("bubblegum", "Waiting on a Gumball...", 10000, false, true, {
45 | disableMovement = true,
46 | disableCarMovement = true,
47 | disableMouse = false,
48 | disableCombat = true,
49 | }, {}, {}, {}, function()
50 | StoreExtraNotifications(1, Config.Notifications["BubbleGumGive"], Config.Notifications["okok_Title"])
51 | ClearPedTasks(PlayerPedId())
52 | TriggerServerEvent('cr-storeextras:server:GiveBubbleGum')
53 | if Config.Cooldowns.Cooldown == true then
54 | TriggerServerEvent('cr-storeextras:server:SetGumballStandCooldown')
55 | end
56 | end, function()
57 | ClearPedTasks(PlayerPedId())
58 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
59 | end)
60 | else
61 | ClearPedTasks(PlayerPedId())
62 | StoreExtraNotifications(3, Config.Notifications["BubbleGumStandFail"], Config.Notifications["okok_Title"])
63 | end
64 | end, math.random(3, 5), math.random(5, 10))
65 | elseif Config.Framework.Minigame == 'qb-skillbar' then
66 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
67 | Skillbar.Start({
68 | duration = math.random(1000, 2000),
69 | pos = math.random(10, 30),
70 | width = math.random(10, 20),
71 | }, function()
72 | if Config.Framework.InteractSound == true then
73 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "bubblegumstand", 0.3)
74 | end
75 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
76 | QBCore.Functions.Progressbar("bubblegum", "Waiting on a Gumball...", 10000, false, true, {
77 | disableMovement = true,
78 | disableCarMovement = true,
79 | disableMouse = false,
80 | disableCombat = true,
81 | }, {}, {}, {}, function()
82 | StoreExtraNotifications(1, Config.Notifications["BubbleGumGive"], Config.Notifications["okok_Title"])
83 | ClearPedTasks(PlayerPedId())
84 | TriggerServerEvent('cr-storeextras:server:GiveBubbleGum')
85 | if Config.Cooldowns.Cooldown == true then
86 | TriggerServerEvent('cr-storeextras:server:SetGumballStandCooldown')
87 | end
88 | end, function()
89 | ClearPedTasks(PlayerPedId())
90 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
91 | end)
92 | end, function()
93 | ClearPedTasks(PlayerPedId())
94 | StoreExtraNotifications(3, Config.Notifications["BubbleGumStandFail"], Config.Notifications["okok_Title"])
95 | end)
96 | elseif Config.Framework.Minigame == false then
97 | if Config.Framework.InteractSound == true then
98 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "bubblegumstand", 0.3)
99 | end
100 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
101 | QBCore.Functions.Progressbar("bubblegum", "Waiting on a Gumball...", 10000, false, true, {
102 | disableMovement = true,
103 | disableCarMovement = true,
104 | disableMouse = false,
105 | disableCombat = true,
106 | }, {}, {}, {}, function()
107 | StoreExtraNotifications(1, Config.Notifications["BubbleGumGive"], Config.Notifications["okok_Title"])
108 | ClearPedTasks(PlayerPedId())
109 | TriggerServerEvent('cr-storeextras:server:GiveBubbleGum')
110 | if Config.Cooldowns.Cooldown == true then
111 | TriggerServerEvent('cr-storeextras:server:SetGumballStandCooldown')
112 | end
113 | end, function()
114 | ClearPedTasks(PlayerPedId())
115 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
116 | end)
117 | end
118 | else
119 | StoreExtraNotifications(3, Config.Notifications["BubbleGumStandCooldownActive"], Config.Notifications["okok_Title"])
120 | end
121 | end)
122 | end)
123 |
124 | RegisterNetEvent('cr-storeextras:client:BubbleGumStandFail')
125 | AddEventHandler('cr-storeextras:client:BubbleGumStandFail', function()
126 | if Config.BubbleGumStandFailChance == true then
127 | StoreExtraNotifications(3, Config.Notifications["BubbleGumStandFailGive"], Config.Notifications["okok_Title"])
128 | else
129 | TriggerServerEvent('cr-storeextras:server:GiveBubbleGum')
130 | end
131 | end)
132 |
--------------------------------------------------------------------------------
/client/icecream.lua:
--------------------------------------------------------------------------------
1 | local QBCore = exports['qb-core']:GetCoreObject()
2 |
3 | RegisterNetEvent('cr-storeextras:client:VanillaIceCream')
4 | AddEventHandler('cr-storeextras:client:VanillaIceCream', function()
5 | local ped = PlayerPedId()
6 | QBCore.Functions.TriggerCallback('cr-storeextras:server:IceCreamCooldown', function(result)
7 | if not result then
8 | if Config.Framework.Minigame == 'qb-lock' then
9 | local seconds = math.random(6, 12)
10 | local circles = math.random(5, 10)
11 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
12 | if success then
13 | if Config.Framework.InteractSound == true then
14 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
15 | end
16 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
17 | QBCore.Functions.Progressbar("vanilla_icecream", "Scooping some Vanilla Ice Cream...", 10000, false, true, {
18 | disableMovement = true,
19 | disableCarMovement = true,
20 | disableMouse = false,
21 | disableCombat = true,
22 | }, {}, {}, {}, function()
23 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
24 | ClearPedTasks(PlayerPedId())
25 | TriggerServerEvent('cr-storeextras:server:GiveVanillaIceCream')
26 | if Config.Cooldowns.Cooldown == true then
27 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
28 | end
29 | end, function()
30 | ClearPedTasks(PlayerPedId())
31 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
32 | end)
33 | else
34 | ClearPedTasks(PlayerPedId())
35 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
36 | end
37 | elseif Config.Framework.Minigame == 'ps-ui' then
38 | exports['ps-ui']:Circle(function(success)
39 | if success then
40 | if Config.Framework.InteractSound == true then
41 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
42 | end
43 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
44 | QBCore.Functions.Progressbar("vanilla_icecream", "Scooping some Vanilla Ice Cream...", 10000, false, true, {
45 | disableMovement = true,
46 | disableCarMovement = true,
47 | disableMouse = false,
48 | disableCombat = true,
49 | }, {}, {}, {}, function()
50 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
51 | ClearPedTasks(PlayerPedId())
52 | TriggerServerEvent('cr-storeextras:server:GiveVanillaIceCream')
53 | if Config.Cooldowns.Cooldown == true then
54 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
55 | end
56 | end, function()
57 | ClearPedTasks(PlayerPedId())
58 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
59 | end)
60 | else
61 | ClearPedTasks(PlayerPedId())
62 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
63 | end
64 | end, math.random(5, 10), math.random(6, 12))
65 | elseif Config.Framework.Minigame == 'qb-skillbar' then
66 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
67 | Skillbar.Start({
68 | duration = math.random(1250, 2500),
69 | pos = math.random(10, 30),
70 | width = math.random(10, 20),
71 | }, function()
72 | if Config.Framework.InteractSound == true then
73 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
74 | end
75 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
76 | QBCore.Functions.Progressbar("vanilla_icecream", "Scooping some Vanilla Ice Cream...", 10000, false, true, {
77 | disableMovement = true,
78 | disableCarMovement = true,
79 | disableMouse = false,
80 | disableCombat = true,
81 | }, {}, {}, {}, function()
82 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
83 | ClearPedTasks(PlayerPedId())
84 | TriggerServerEvent('cr-storeextras:server:GiveVanillaIceCream')
85 | if Config.Cooldowns.Cooldown == true then
86 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
87 | end
88 | end, function()
89 | ClearPedTasks(PlayerPedId())
90 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
91 | end)
92 | end, function()
93 | ClearPedTasks(PlayerPedId())
94 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
95 | end)
96 | elseif Config.Framework.Minigame == false then
97 | if Config.Framework.InteractSound == true then
98 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
99 | end
100 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
101 | QBCore.Functions.Progressbar("vanilla_icecream", "Scooping some Vanilla Ice Cream...", 10000, false, true, {
102 | disableMovement = true,
103 | disableCarMovement = true,
104 | disableMouse = false,
105 | disableCombat = true,
106 | }, {}, {}, {}, function()
107 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
108 | ClearPedTasks(PlayerPedId())
109 | TriggerServerEvent('cr-storeextras:server:GiveVanillaIceCream')
110 | if Config.Cooldowns.Cooldown == true then
111 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
112 | end
113 | end, function()
114 | ClearPedTasks(PlayerPedId())
115 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
116 | end)
117 | end
118 | else
119 | StoreExtraNotifications(3, Config.Notifications["IceCreamCooldownActive"], Config.Notifications["okok_Title"])
120 | end
121 | end)
122 | end)
123 |
124 | RegisterNetEvent('cr-storeextras:client:ChocolateIceCream')
125 | AddEventHandler('cr-storeextras:client:ChocolateIceCream', function()
126 | local ped = PlayerPedId()
127 | QBCore.Functions.TriggerCallback('cr-storeextras:server:IceCreamCooldown', function(result)
128 | if not result then
129 | if Config.Framework.Minigame == 'qb-lock' then
130 | local seconds = math.random(6, 12)
131 | local circles = math.random(5, 10)
132 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
133 | if success then
134 | if Config.Framework.InteractSound == true then
135 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
136 | end
137 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
138 | QBCore.Functions.Progressbar("chocolate_icecream", "Scooping some Chocolate Ice Cream...", 10000, false, true, {
139 | disableMovement = true,
140 | disableCarMovement = true,
141 | disableMouse = false,
142 | disableCombat = true,
143 | }, {}, {}, {}, function()
144 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
145 | ClearPedTasks(PlayerPedId())
146 | TriggerServerEvent('cr-storeextras:server:GiveChocolateIceCream')
147 | if Config.Cooldowns.Cooldown == true then
148 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
149 | end
150 | end, function()
151 | ClearPedTasks(PlayerPedId())
152 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
153 | end)
154 | else
155 | ClearPedTasks(PlayerPedId())
156 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
157 | end
158 | elseif Config.Framework.Minigame == 'ps-ui' then
159 | exports['ps-ui']:Circle(function(success)
160 | if success then
161 | if Config.Framework.InteractSound == true then
162 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
163 | end
164 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
165 | QBCore.Functions.Progressbar("chocolate_icecream", "Scooping some Chocolate Ice Cream...", 10000, false, true, {
166 | disableMovement = true,
167 | disableCarMovement = true,
168 | disableMouse = false,
169 | disableCombat = true,
170 | }, {}, {}, {}, function()
171 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
172 | ClearPedTasks(PlayerPedId())
173 | TriggerServerEvent('cr-storeextras:server:GiveChocolateIceCream')
174 | if Config.Cooldowns.Cooldown == true then
175 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
176 | end
177 | end, function()
178 | ClearPedTasks(PlayerPedId())
179 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
180 | end)
181 | else
182 | ClearPedTasks(PlayerPedId())
183 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
184 | end
185 | end, math.random(5, 10), math.random(6, 12))
186 | elseif Config.Framework.Minigame == 'qb-skillbar' then
187 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
188 | Skillbar.Start({
189 | duration = math.random(1250, 2500),
190 | pos = math.random(10, 30),
191 | width = math.random(10, 20),
192 | }, function()
193 | if Config.Framework.InteractSound == true then
194 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
195 | end
196 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
197 | QBCore.Functions.Progressbar("chocolate_icecream", "Scooping some Chocolate Ice Cream...", 10000, false, true, {
198 | disableMovement = true,
199 | disableCarMovement = true,
200 | disableMouse = false,
201 | disableCombat = true,
202 | }, {}, {}, {}, function()
203 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
204 | ClearPedTasks(PlayerPedId())
205 | TriggerServerEvent('cr-storeextras:server:GiveChocolateIceCream')
206 | if Config.Cooldowns.Cooldown == true then
207 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
208 | end
209 | end, function()
210 | ClearPedTasks(PlayerPedId())
211 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
212 | end)
213 | end, function()
214 | ClearPedTasks(PlayerPedId())
215 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
216 | end)
217 | elseif Config.Framework.Minigame == false then
218 | if Config.Framework.InteractSound == true then
219 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
220 | end
221 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
222 | QBCore.Functions.Progressbar("chocolate_icecream", "Scooping some Chocolate Ice Cream...", 10000, false, true, {
223 | disableMovement = true,
224 | disableCarMovement = true,
225 | disableMouse = false,
226 | disableCombat = true,
227 | }, {}, {}, {}, function()
228 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
229 | ClearPedTasks(PlayerPedId())
230 | TriggerServerEvent('cr-storeextras:server:GiveChocolateIceCream')
231 | if Config.Cooldowns.Cooldown == true then
232 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
233 | end
234 | end, function()
235 | ClearPedTasks(PlayerPedId())
236 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
237 | end)
238 | end
239 | else
240 | StoreExtraNotifications(3, Config.Notifications["IceCreamCooldownActive"], Config.Notifications["okok_Title"])
241 | end
242 | end)
243 | end)
244 |
245 | RegisterNetEvent('cr-storeextras:client:MintIceCream')
246 | AddEventHandler('cr-storeextras:client:MintIceCream', function()
247 | local ped = PlayerPedId()
248 | QBCore.Functions.TriggerCallback('cr-storeextras:server:IceCreamCooldown', function(result)
249 | if not result then
250 | if Config.Framework.Minigame == 'qb-lock' then
251 | local seconds = math.random(6, 12)
252 | local circles = math.random(5, 10)
253 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
254 | if success then
255 | if Config.Framework.InteractSound == true then
256 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
257 | end
258 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
259 | QBCore.Functions.Progressbar("mint_icecream", "Scooping some Mint Ice Cream...", 10000, false, true, {
260 | disableMovement = true,
261 | disableCarMovement = true,
262 | disableMouse = false,
263 | disableCombat = true,
264 | }, {}, {}, {}, function()
265 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
266 | ClearPedTasks(PlayerPedId())
267 | TriggerServerEvent('cr-storeextras:server:GiveMintIceCream')
268 | if Config.Cooldowns.Cooldown == true then
269 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
270 | end
271 | end, function()
272 | ClearPedTasks(PlayerPedId())
273 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
274 | end)
275 | else
276 | ClearPedTasks(PlayerPedId())
277 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
278 | end
279 | elseif Config.Framework.Minigame == 'ps-ui' then
280 | exports['ps-ui']:Circle(function(success)
281 | if success then
282 | if Config.Framework.InteractSound == true then
283 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
284 | end
285 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
286 | QBCore.Functions.Progressbar("mint_icecream", "Scooping some Mint Ice Cream...", 10000, false, true, {
287 | disableMovement = true,
288 | disableCarMovement = true,
289 | disableMouse = false,
290 | disableCombat = true,
291 | }, {}, {}, {}, function()
292 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
293 | ClearPedTasks(PlayerPedId())
294 | TriggerServerEvent('cr-storeextras:server:GiveMintIceCream')
295 | if Config.Cooldowns.Cooldown == true then
296 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
297 | end
298 | end, function()
299 | ClearPedTasks(PlayerPedId())
300 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
301 | end)
302 | else
303 | ClearPedTasks(PlayerPedId())
304 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
305 | end
306 | end, math.random(5, 10), math.random(6, 12))
307 | elseif Config.Framework.Minigame == 'qb-skillbar' then
308 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
309 | Skillbar.Start({
310 | duration = math.random(1250, 2500),
311 | pos = math.random(10, 30),
312 | width = math.random(10, 20),
313 | }, function()
314 | if Config.Framework.InteractSound == true then
315 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
316 | end
317 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
318 | QBCore.Functions.Progressbar("mint_icecream", "Scooping some Mint Ice Cream...", 10000, false, true, {
319 | disableMovement = true,
320 | disableCarMovement = true,
321 | disableMouse = false,
322 | disableCombat = true,
323 | }, {}, {}, {}, function()
324 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
325 | ClearPedTasks(PlayerPedId())
326 | TriggerServerEvent('cr-storeextras:server:GiveMintIceCream')
327 | if Config.Cooldowns.Cooldown == true then
328 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
329 | end
330 | end, function()
331 | ClearPedTasks(PlayerPedId())
332 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
333 | end)
334 | end, function()
335 | ClearPedTasks(PlayerPedId())
336 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
337 | end)
338 | elseif Config.Framework.Minigame == false then
339 | if Config.Framework.InteractSound == true then
340 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
341 | end
342 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
343 | QBCore.Functions.Progressbar("mint_icecream", "Scooping some Mint Ice Cream...", 10000, false, true, {
344 | disableMovement = true,
345 | disableCarMovement = true,
346 | disableMouse = false,
347 | disableCombat = true,
348 | }, {}, {}, {}, function()
349 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
350 | ClearPedTasks(PlayerPedId())
351 | TriggerServerEvent('cr-storeextras:server:GiveMintIceCream')
352 | if Config.Cooldowns.Cooldown == true then
353 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
354 | end
355 | end, function()
356 | ClearPedTasks(PlayerPedId())
357 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
358 | end)
359 | end
360 | else
361 | StoreExtraNotifications(3, Config.Notifications["IceCreamCooldownActive"], Config.Notifications["okok_Title"])
362 | end
363 | end)
364 | end)
365 |
366 | RegisterNetEvent('cr-storeextras:client:CookiesAndCreamIceCream')
367 | AddEventHandler('cr-storeextras:client:CookiesAndCreamIceCream', function()
368 | local ped = PlayerPedId()
369 | QBCore.Functions.TriggerCallback('cr-storeextras:server:IceCreamCooldown', function(result)
370 | if not result then
371 | if Config.Framework.Minigame == 'qb-lock' then
372 | local seconds = math.random(6, 12)
373 | local circles = math.random(5, 10)
374 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
375 | if success then
376 | if Config.Framework.InteractSound == true then
377 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
378 | end
379 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
380 | QBCore.Functions.Progressbar("cookiesandcream_icecream", "Scooping some Cookies & Cream Ice Cream...", 10000, false, true, {
381 | disableMovement = true,
382 | disableCarMovement = true,
383 | disableMouse = false,
384 | disableCombat = true,
385 | }, {}, {}, {}, function()
386 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
387 | ClearPedTasks(PlayerPedId())
388 | TriggerServerEvent('cr-storeextras:server:GiveCookiesAndCreamIceCream')
389 | if Config.Cooldowns.Cooldown == true then
390 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
391 | end
392 | end, function()
393 | ClearPedTasks(PlayerPedId())
394 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
395 | end)
396 | else
397 | ClearPedTasks(PlayerPedId())
398 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
399 | end
400 | elseif Config.Framework.Minigame == 'ps-ui' then
401 | exports['ps-ui']:Circle(function(success)
402 | if success then
403 | if Config.Framework.InteractSound == true then
404 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
405 | end
406 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
407 | QBCore.Functions.Progressbar("cookiesandcream_icecream", "Scooping some Cookies & Cream Ice Cream...", 10000, false, true, {
408 | disableMovement = true,
409 | disableCarMovement = true,
410 | disableMouse = false,
411 | disableCombat = true,
412 | }, {}, {}, {}, function()
413 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
414 | ClearPedTasks(PlayerPedId())
415 | TriggerServerEvent('cr-storeextras:server:GiveCookiesAndCreamIceCream')
416 | if Config.Cooldowns.Cooldown == true then
417 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
418 | end
419 | end, function()
420 | ClearPedTasks(PlayerPedId())
421 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
422 | end)
423 | else
424 | ClearPedTasks(PlayerPedId())
425 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
426 | end
427 | end, math.random(5, 10), math.random(6, 12))
428 | elseif Config.Framework.Minigame == 'qb-skillbar' then
429 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
430 | Skillbar.Start({
431 | duration = math.random(1250, 2500),
432 | pos = math.random(10, 30),
433 | width = math.random(10, 20),
434 | }, function()
435 | if Config.Framework.InteractSound == true then
436 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
437 | end
438 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
439 | QBCore.Functions.Progressbar("cookiesandcream_icecream", "Scooping some Cookies & Cream Ice Cream...", 10000, false, true, {
440 | disableMovement = true,
441 | disableCarMovement = true,
442 | disableMouse = false,
443 | disableCombat = true,
444 | }, {}, {}, {}, function()
445 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
446 | ClearPedTasks(PlayerPedId())
447 | TriggerServerEvent('cr-storeextras:server:GiveCookiesAndCreamIceCream')
448 | if Config.Cooldowns.Cooldown == true then
449 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
450 | end
451 | end, function()
452 | ClearPedTasks(PlayerPedId())
453 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
454 | end)
455 | end, function()
456 | ClearPedTasks(PlayerPedId())
457 | StoreExtraNotifications(3, Config.Notifications["IceCreamMinigameFail"], Config.Notifications["okok_Title"])
458 | end)
459 | elseif Config.Framework.Minigame == false then
460 | if Config.Framework.InteractSound == true then
461 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "scoopicecream", 0.3)
462 | end
463 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true) -- Change Emote
464 | QBCore.Functions.Progressbar("cookiesandcream_icecream", "Scooping some Cookies & Cream Ice Cream...", 10000, false, true, {
465 | disableMovement = true,
466 | disableCarMovement = true,
467 | disableMouse = false,
468 | disableCombat = true,
469 | }, {}, {}, {}, function()
470 | StoreExtraNotifications(1, Config.Notifications["IceCreamGive"], Config.Notifications["okok_Title"])
471 | ClearPedTasks(PlayerPedId())
472 | TriggerServerEvent('cr-storeextras:server:GiveCookiesAndCreamIceCream')
473 | if Config.Cooldowns.Cooldown == true then
474 | TriggerServerEvent('cr-storeextras:server:SetIceCreamCooldown')
475 | end
476 | end, function()
477 | ClearPedTasks(PlayerPedId())
478 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
479 | end)
480 | end
481 | else
482 | StoreExtraNotifications(3, Config.Notifications["IceCreamCooldownActive"], Config.Notifications["okok_Title"])
483 | end
484 | end)
485 | end)
486 |
--------------------------------------------------------------------------------
/client/main.lua:
--------------------------------------------------------------------------------
1 | local QBCore = exports['qb-core']:GetCoreObject()
2 |
3 | local slushy = Config.Props.SlushyProp
4 | local sluckyduckydonut = Config.Props.DonutProp
5 | local icecream = Config.Props.IceCreamProp
6 | local gumballstand = Config.Props.BubbleGumStandProp
7 |
8 | function StoreExtraNotifications(notifType, message, title)
9 | if Config.Notify == "qb" then
10 | if notifType == 1 then
11 | QBCore.Functions.Notify(message, 'success')
12 | elseif notifType == 2 then
13 | QBCore.Functions.Notify(message, 'primary')
14 | elseif notifType == 3 then
15 | QBCore.Functions.Notify(message, 'error')
16 | end
17 | elseif Config.Notify == "okok" then
18 | if notifType == 1 then
19 | exports['okokNotify']:Alert(title, message, 3000, 'success')
20 | elseif notifType == 2 then
21 | exports['okokNotify']:Alert(title, message, 3000, 'info')
22 | elseif notifType == 3 then
23 | exports['okokNotify']:Alert(title, message, 3000, 'error')
24 | end
25 | elseif Config.Notify == "mythic" then
26 | if notifType == 1 then
27 | exports['mythic_notify']:DoHudText('success', message)
28 | elseif notifType == 2 then
29 | exports['mythic_notify']:DoHudText('inform', message)
30 | elseif notifType == 3 then
31 | exports['mythic_notify']:DoHudText('error', message)
32 | end
33 | elseif Config.Notify == "tnj" then
34 | if notifType == 1 then
35 | exports['tnj-notify']:Notify(message, 'success', 3000)
36 | elseif notifType == 2 then
37 | exports['tnj-notify']:Notify(message, 'primary', 3000)
38 | elseif notifType == 3 then
39 | exports['tnj-notify']:Notify(message, 'error', 3000)
40 | end
41 | elseif Config.Notify == "chat" then
42 | TriggerEvent('chatMessage', message)
43 | end
44 | end
45 |
46 | Citizen.CreateThread(function()
47 | if Config.Framework.Target == 'qb-target' then
48 | exports['qb-target']:AddTargetModel(slushy,{
49 | options = {
50 | {
51 | type = "client",
52 | event = "cr-storeextras:client:RedSlushy",
53 | icon = "fas fa-wine-bottle",
54 | label = "Pour Red Slushy"
55 | },
56 | {
57 | type = "client",
58 | event = "cr-storeextras:client:GreenSlushy",
59 | icon = "fas fa-wine-bottle",
60 | label = "Pour Green Slushy"
61 | },
62 | {
63 | type = "client",
64 | event = "cr-storeextras:client:OrangeSlushy",
65 | icon = "fas fa-wine-bottle",
66 | label = "Pour Orange Slushy"
67 | },
68 | {
69 | type = "client",
70 | event = "cr-storeextras:client:YellowSlushy",
71 | icon = "fas fa-wine-bottle",
72 | label = "Pour Yellow Slushy"
73 | },
74 | {
75 | type = "client",
76 | event = "cr-storeextras:client:BlueSlushy",
77 | icon = "fas fa-wine-bottle",
78 | label = "Pour Blue Slushy"
79 | },
80 | {
81 | type = "client",
82 | event = "cr-storeextras:client:RainbowSlushy",
83 | icon = "fas fa-wine-bottle",
84 | label = "Pour Rainbow Slushy"
85 | },
86 | },
87 | distance = 1.5
88 | })
89 | exports['qb-target']:AddTargetModel(sluckyduckydonut, {
90 | options = {
91 | {
92 | type = "client",
93 | event = "cr-storeextras:client:SluckyBuckyDonut",
94 | icon = "fas fa-hand-holding",
95 | label = "Grab Slucky Bucky Donut"
96 | },
97 | },
98 | distance = 1.5
99 | })
100 | exports['qb-target']:AddTargetModel(icecream, {
101 | options = {
102 | {
103 | type = "client",
104 | event = "cr-storeextras:client:VanillaIceCream",
105 | icon = "fas fa-ice-cream",
106 | label = "Scoop Vanilla Ice Cream"
107 | },
108 | {
109 | type = "client",
110 | event = "cr-storeextras:client:ChocolateIceCream",
111 | icon = "fas fa-ice-cream",
112 | label = "Scoop Chocolate Ice Cream"
113 | },
114 | {
115 | type = "client",
116 | event = "cr-storeextras:client:MintIceCream",
117 | icon = "fas fa-ice-cream",
118 | label = "Scoop Mint Ice Cream"
119 | },
120 | {
121 | type = "client",
122 | event = "cr-storeextras:client:CookiesAndCreamIceCream",
123 | icon = "fas fa-ice-cream",
124 | label = "Scoop Cookies & Cream Ice Cream"
125 | },
126 | },
127 | distance = 1.5
128 | })
129 | exports['qb-target']:AddTargetModel(gumballstand, {
130 | options = {
131 | {
132 | type = "client",
133 | event = "cr-storeextras:client:BubbleGumStand",
134 | icon = "fas fa-coin",
135 | label = "Grab GumBall"
136 | },
137 | },
138 | distance = 1.5
139 | })
140 | elseif Config.Framework.Target == 'qtarget' then
141 | exports['qtarget']:AddTargetModel(slushy,{
142 | options = {
143 | {
144 | type = "client",
145 | event = "cr-storeextras:client:RedSlushy",
146 | icon = "fas fa-wine-bottle",
147 | label = "Pour Red Slushy"
148 | },
149 | {
150 | type = "client",
151 | event = "cr-storeextras:client:GreenSlushy",
152 | icon = "fas fa-wine-bottle",
153 | label = "Pour Green Slushy"
154 | },
155 | {
156 | type = "client",
157 | event = "cr-storeextras:client:OrangeSlushy",
158 | icon = "fas fa-wine-bottle",
159 | label = "Pour Orange Slushy"
160 | },
161 | {
162 | type = "client",
163 | event = "cr-storeextras:client:YellowSlushy",
164 | icon = "fas fa-wine-bottle",
165 | label = "Pour Yellow Slushy"
166 | },
167 | {
168 | type = "client",
169 | event = "cr-storeextras:client:BlueSlushy",
170 | icon = "fas fa-wine-bottle",
171 | label = "Pour Blue Slushy"
172 | },
173 | {
174 | type = "client",
175 | event = "cr-storeextras:client:RainbowSlushy",
176 | icon = "fas fa-wine-bottle",
177 | label = "Pour Rainbow Slushy"
178 | },
179 | },
180 | distance = 1.5
181 | })
182 | exports['qtarget']:AddTargetModel(sluckyduckydonut, {
183 | options = {
184 | {
185 | type = "client",
186 | event = "cr-storeextras:client:SluckyBuckyDonut",
187 | icon = "fas fa-hand-holding",
188 | label = "Grab Slucky Bucky Donut"
189 | },
190 | },
191 | distance = 1.5
192 | })
193 | exports['qtarget']:AddTargetModel(icecream, {
194 | options = {
195 | {
196 | type = "client",
197 | event = "cr-storeextras:client:VanillaIceCream",
198 | icon = "fas fa-ice-cream",
199 | label = "Scoop Vanilla Ice Cream"
200 | },
201 | {
202 | type = "client",
203 | event = "cr-storeextras:client:ChocolateIceCream",
204 | icon = "fas fa-ice-cream",
205 | label = "Scoop Chocolate Ice Cream"
206 | },
207 | {
208 | type = "client",
209 | event = "cr-storeextras:client:MintIceCream",
210 | icon = "fas fa-ice-cream",
211 | label = "Scoop Mint Ice Cream"
212 | },
213 | {
214 | type = "client",
215 | event = "cr-storeextras:client:CookiesAndCreamIceCream",
216 | icon = "fas fa-ice-cream",
217 | label = "Scoop Cookies & Cream Ice Cream"
218 | },
219 | },
220 | distance = 1.5
221 | })
222 | exports['qtarget']:AddTargetModel(gumballstand, {
223 | options = {
224 | {
225 | type = "client",
226 | event = "cr-storeextras:client:BubbleGumStand",
227 | icon = "fas fa-coin",
228 | label = "Grab GumBall"
229 | },
230 | },
231 | distance = 1.5
232 | })
233 | end
234 | end)
235 |
--------------------------------------------------------------------------------
/client/sluckybuckydonut.lua:
--------------------------------------------------------------------------------
1 | local QBCore = exports['qb-core']:GetCoreObject()
2 |
3 | RegisterNetEvent('cr-storeextras:client:SluckyBuckyDonut')
4 | AddEventHandler('cr-storeextras:client:SluckyBuckyDonut', function()
5 | local ped = PlayerPedId()
6 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SluckyBuckyDonutCooldown', function(result)
7 | if not result then
8 | if Config.Framework.Minigame == 'qb-lock' then
9 | local seconds = math.random(2, 4)
10 | local circles = math.random(12, 18)
11 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
12 | if success then
13 | if Config.Framework.InteractSound == true then
14 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "deepfried", 0.3)
15 | end
16 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
17 | QBCore.Functions.Progressbar("slucky_bucky_donut", "Grabbing a Super Donut!", 10000, false, true, {
18 | disableMovement = true,
19 | disableCarMovement = true,
20 | disableMouse = false,
21 | disableCombat = true,
22 | }, {}, {}, {}, function()
23 | StoreExtraNotifications(1, Config.Notifications["SluckyDonutGive"], Config.Notifications["okok_Title"])
24 | ClearPedTasks(PlayerPedId())
25 | TriggerServerEvent('cr-storeextras:server:GiveSluckyDonut')
26 | if Config.Cooldowns.Cooldown == true then
27 | TriggerServerEvent('cr-storeextras:server:SetSluckyBuckyDonutCooldown')
28 | end
29 | end, function()
30 | ClearPedTasks(PlayerPedId())
31 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
32 | end)
33 | else
34 | ClearPedTasks(PlayerPedId())
35 | StoreExtraNotifications(3, Config.Notifications["SluckyBuckyDonutMinigameFail"], Config.Notifications["okok_Title"])
36 | end
37 | elseif Config.Framework.Minigame == 'ps-ui' then
38 | exports['ps-ui']:Circle(function(success)
39 | if success then
40 | if Config.Framework.InteractSound == true then
41 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "deepfried", 0.3)
42 | end
43 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
44 | QBCore.Functions.Progressbar("slucky_bucky_donut", "Grabbing a Super Donut!", 10000, false, true, {
45 | disableMovement = true,
46 | disableCarMovement = true,
47 | disableMouse = false,
48 | disableCombat = true,
49 | }, {}, {}, {}, function()
50 | StoreExtraNotifications(1, Config.Notifications["SluckyDonutGive"], Config.Notifications["okok_Title"])
51 | ClearPedTasks(PlayerPedId())
52 | TriggerServerEvent('cr-storeextras:server:GiveSluckyDonut')
53 | if Config.Cooldowns.Cooldown == true then
54 | TriggerServerEvent('cr-storeextras:server:SetSluckyBuckyDonutCooldown')
55 | end
56 | end, function()
57 | ClearPedTasks(PlayerPedId())
58 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
59 | end)
60 | else
61 | ClearPedTasks(PlayerPedId())
62 | StoreExtraNotifications(3, Config.Notifications["SluckyBuckyDonutMinigameFail"], Config.Notifications["okok_Title"])
63 | end
64 | end, math.random(12, 18), math.random(2, 4))
65 | elseif Config.Framework.Minigame == 'qb-skillbar' then
66 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
67 | Skillbar.Start({
68 | duration = math.random(250, 1000),
69 | pos = math.random(10, 30),
70 | width = math.random(10, 20),
71 | }, function()
72 | if Config.Framework.InteractSound == true then
73 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "deepfried", 0.3)
74 | end
75 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
76 | QBCore.Functions.Progressbar("slucky_bucky_donut", "Grabbing a Super Donut!", 10000, false, true, {
77 | disableMovement = true,
78 | disableCarMovement = true,
79 | disableMouse = false,
80 | disableCombat = true,
81 | }, {}, {}, {}, function()
82 | StoreExtraNotifications(1, Config.Notifications["SluckyDonutGive"], Config.Notifications["okok_Title"])
83 | ClearPedTasks(PlayerPedId())
84 | TriggerServerEvent('cr-storeextras:server:GiveSluckyDonut')
85 | if Config.Cooldowns.Cooldown == true then
86 | TriggerServerEvent('cr-storeextras:server:SetSluckyBuckyDonutCooldown')
87 | end
88 | end, function()
89 | ClearPedTasks(PlayerPedId())
90 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
91 | end)
92 | end, function()
93 | ClearPedTasks(PlayerPedId())
94 | StoreExtraNotifications(3, Config.Notifications["SluckyBuckyDonutMinigameFail"], Config.Notifications["okok_Title"])
95 | end)
96 | elseif Config.Framework.Minigame == false then
97 | if Config.Framework.InteractSound == true then
98 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "deepfried", 0.3)
99 | end
100 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
101 | QBCore.Functions.Progressbar("slucky_bucky_donut", "Grabbing a Super Donut!", 10000, false, true, {
102 | disableMovement = true,
103 | disableCarMovement = true,
104 | disableMouse = false,
105 | disableCombat = true,
106 | }, {}, {}, {}, function()
107 | StoreExtraNotifications(1, Config.Notifications["SluckyDonutGive"], Config.Notifications["okok_Title"])
108 | ClearPedTasks(PlayerPedId())
109 | TriggerServerEvent('cr-storeextras:server:GiveSluckyDonut')
110 | if Config.Cooldowns.Cooldown == true then
111 | TriggerServerEvent('cr-storeextras:server:SetSluckyBuckyDonutCooldown')
112 | end
113 | end, function()
114 | ClearPedTasks(PlayerPedId())
115 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
116 | end)
117 | end
118 | else
119 | StoreExtraNotifications(3, Config.Notifications["SluckyBuckyDonutCooldownActive"], Config.Notifications["okok_Title"])
120 | end
121 | end)
122 | end)
123 |
--------------------------------------------------------------------------------
/client/slushies.lua:
--------------------------------------------------------------------------------
1 | local QBCore = exports['qb-core']:GetCoreObject()
2 |
3 | RegisterNetEvent('cr-storeextras:client:RedSlushy')
4 | AddEventHandler('cr-storeextras:client:RedSlushy', function()
5 | local ped = PlayerPedId()
6 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SlushyCooldown', function(result)
7 | if not result then
8 | if Config.Framework.Minigame == 'qb-lock' then
9 | local seconds = math.random(10, 12)
10 | local circles = math.random(4, 8)
11 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
12 | if success then
13 | if Config.Framework.InteractSound == true then
14 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
15 | end
16 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
17 | QBCore.Functions.Progressbar("red_slushy", "Pouring a Red Slushy...", 10000, false, true, {
18 | disableMovement = true,
19 | disableCarMovement = true,
20 | disableMouse = false,
21 | disableCombat = true,
22 | }, {}, {}, {}, function()
23 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
24 | ClearPedTasks(PlayerPedId())
25 | TriggerServerEvent('cr-storeextras:server:GiveRedSlushy')
26 | if Config.Cooldowns.Cooldown == true then
27 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
28 | end
29 | end, function()
30 | ClearPedTasks(PlayerPedId())
31 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
32 | end)
33 | else
34 | ClearPedTasks(PlayerPedId())
35 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
36 | end
37 | elseif Config.Framework.Minigame == 'ps-ui' then
38 | exports['ps-ui']:Circle(function(success)
39 | if success then
40 | if Config.Framework.InteractSound == true then
41 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
42 | end
43 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
44 | QBCore.Functions.Progressbar("red_slushy", "Pouring a Red Slushy...", 10000, false, true, {
45 | disableMovement = true,
46 | disableCarMovement = true,
47 | disableMouse = false,
48 | disableCombat = true,
49 | }, {}, {}, {}, function()
50 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
51 | ClearPedTasks(PlayerPedId())
52 | TriggerServerEvent('cr-storeextras:server:GiveRedSlushy')
53 | if Config.Cooldowns.Cooldown == true then
54 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
55 | end
56 | end, function()
57 | ClearPedTasks(PlayerPedId())
58 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
59 | end)
60 | else
61 | ClearPedTasks(PlayerPedId())
62 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
63 | end
64 | end, math.random(4, 8), math.random(10, 12))
65 | elseif Config.Framework.Minigame == 'qb-skillbar' then
66 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
67 | Skillbar.Start({
68 | duration = math.random(3500, 5000),
69 | pos = math.random(10, 30),
70 | width = math.random(10, 20),
71 | }, function()
72 | if Config.Framework.InteractSound == true then
73 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
74 | end
75 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
76 | QBCore.Functions.Progressbar("red_slushy", "Pouring a Red Slushy...", 10000, false, true, {
77 | disableMovement = true,
78 | disableCarMovement = true,
79 | disableMouse = false,
80 | disableCombat = true,
81 | }, {}, {}, {}, function()
82 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
83 | ClearPedTasks(PlayerPedId())
84 | TriggerServerEvent('cr-storeextras:server:GiveRedSlushy')
85 | if Config.Cooldowns.Cooldown == true then
86 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
87 | end
88 | end, function()
89 | ClearPedTasks(PlayerPedId())
90 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
91 | end)
92 | end, function()
93 | ClearPedTasks(PlayerPedId())
94 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
95 | end)
96 | elseif Config.Framework.Minigame == false then
97 | if Config.Framework.InteractSound == true then
98 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
99 | end
100 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
101 | QBCore.Functions.Progressbar("red_slushy", "Pouring a Red Slushy...", 10000, false, true, {
102 | disableMovement = true,
103 | disableCarMovement = true,
104 | disableMouse = false,
105 | disableCombat = true,
106 | }, {}, {}, {}, function()
107 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
108 | ClearPedTasks(PlayerPedId())
109 | TriggerServerEvent('cr-storeextras:server:GiveRedSlushy')
110 | if Config.Cooldowns.Cooldown == true then
111 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
112 | end
113 | end, function()
114 | ClearPedTasks(PlayerPedId())
115 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
116 | end)
117 | end
118 | else
119 | StoreExtraNotifications(3, Config.Notifications["SlushyCooldownActive"], Config.Notifications["okok_Title"])
120 | end
121 | end)
122 | end)
123 |
124 | RegisterNetEvent('cr-storeextras:client:GreenSlushy')
125 | AddEventHandler('cr-storeextras:client:GreenSlushy', function()
126 | local ped = PlayerPedId()
127 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SlushyCooldown', function(result)
128 | if not result then
129 | if Config.Framework.Minigame == 'qb-lock' then
130 | local seconds = math.random(10, 12)
131 | local circles = math.random(4, 8)
132 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
133 | if success then
134 | if Config.Framework.InteractSound == true then
135 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
136 | end
137 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
138 | QBCore.Functions.Progressbar("green_slushy", "Pouring a Green Slushy...", 10000, false, true, {
139 | disableMovement = true,
140 | disableCarMovement = true,
141 | disableMouse = false,
142 | disableCombat = true,
143 | }, {}, {}, {}, function()
144 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
145 | ClearPedTasks(PlayerPedId())
146 | TriggerServerEvent('cr-storeextras:server:GiveGreenSlushy')
147 | if Config.Cooldowns.Cooldown == true then
148 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
149 | end
150 | end, function()
151 | ClearPedTasks(PlayerPedId())
152 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
153 | end)
154 | else
155 | ClearPedTasks(PlayerPedId())
156 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
157 | end
158 | elseif Config.Framework.Minigame == 'ps-ui' then
159 | exports['ps-ui']:Circle(function(success)
160 | if success then
161 | if Config.Framework.InteractSound == true then
162 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
163 | end
164 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
165 | QBCore.Functions.Progressbar("green_slushy", "Pouring a Green Slushy...", 10000, false, true, {
166 | disableMovement = true,
167 | disableCarMovement = true,
168 | disableMouse = false,
169 | disableCombat = true,
170 | }, {}, {}, {}, function()
171 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
172 | ClearPedTasks(PlayerPedId())
173 | TriggerServerEvent('cr-storeextras:server:GiveGreenSlushy')
174 | if Config.Cooldowns.Cooldown == true then
175 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
176 | end
177 | end, function()
178 | ClearPedTasks(PlayerPedId())
179 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
180 | end)
181 | else
182 | ClearPedTasks(PlayerPedId())
183 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
184 | end
185 | end, math.random(4, 8), math.random(10, 12))
186 | elseif Config.Framework.Minigame == 'qb-skillbar' then
187 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
188 | Skillbar.Start({
189 | duration = math.random(3500, 5000),
190 | pos = math.random(10, 30),
191 | width = math.random(10, 20),
192 | }, function()
193 | if Config.Framework.InteractSound == true then
194 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
195 | end
196 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
197 | QBCore.Functions.Progressbar("green_slushy", "Pouring a Green Slushy...", 10000, false, true, {
198 | disableMovement = true,
199 | disableCarMovement = true,
200 | disableMouse = false,
201 | disableCombat = true,
202 | }, {}, {}, {}, function()
203 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
204 | ClearPedTasks(PlayerPedId())
205 | TriggerServerEvent('cr-storeextras:server:GiveGreenSlushy')
206 | if Config.Cooldowns.Cooldown == true then
207 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
208 | end
209 | end, function()
210 | ClearPedTasks(PlayerPedId())
211 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
212 | end)
213 | end, function()
214 | ClearPedTasks(PlayerPedId())
215 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
216 | end)
217 | elseif Config.Framework.Minigame == false then
218 | if Config.Framework.InteractSound == true then
219 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
220 | end
221 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
222 | QBCore.Functions.Progressbar("green_slushy", "Pouring a Green Slushy...", 10000, false, true, {
223 | disableMovement = true,
224 | disableCarMovement = true,
225 | disableMouse = false,
226 | disableCombat = true,
227 | }, {}, {}, {}, function()
228 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
229 | ClearPedTasks(PlayerPedId())
230 | TriggerServerEvent('cr-storeextras:server:GiveGreenSlushy')
231 | if Config.Cooldowns.Cooldown == true then
232 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
233 | end
234 | end, function()
235 | ClearPedTasks(PlayerPedId())
236 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
237 | end)
238 | end
239 | else
240 | StoreExtraNotifications(3, Config.Notifications["SlushyCooldownActive"], Config.Notifications["okok_Title"])
241 | end
242 | end)
243 | end)
244 |
245 | RegisterNetEvent('cr-storeextras:client:OrangeSlushy')
246 | AddEventHandler('cr-storeextras:client:OrangeSlushy', function()
247 | local ped = PlayerPedId()
248 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SlushyCooldown', function(result)
249 | if not result then
250 | if Config.Framework.Minigame == 'qb-lock' then
251 | local seconds = math.random(10, 12)
252 | local circles = math.random(4, 8)
253 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
254 | if success then
255 | if Config.Framework.InteractSound == true then
256 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
257 | end
258 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
259 | QBCore.Functions.Progressbar("orange_slushy", "Pouring a Orange Slushy...", 10000, false, true, {
260 | disableMovement = true,
261 | disableCarMovement = true,
262 | disableMouse = false,
263 | disableCombat = true,
264 | }, {}, {}, {}, function()
265 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
266 | ClearPedTasks(PlayerPedId())
267 | TriggerServerEvent('cr-storeextras:server:GiveOrangeSlushy')
268 | if Config.Cooldowns.Cooldown == true then
269 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
270 | end
271 | end, function()
272 | ClearPedTasks(PlayerPedId())
273 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
274 | end)
275 | else
276 | ClearPedTasks(PlayerPedId())
277 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
278 | end
279 | elseif Config.Framework.Minigame == 'ps-ui' then
280 | exports['ps-ui']:Circle(function(success)
281 | if success then
282 | if Config.Framework.InteractSound == true then
283 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
284 | end
285 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
286 | QBCore.Functions.Progressbar("orange_slushy", "Pouring a Orange Slushy...", 10000, false, true, {
287 | disableMovement = true,
288 | disableCarMovement = true,
289 | disableMouse = false,
290 | disableCombat = true,
291 | }, {}, {}, {}, function()
292 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
293 | ClearPedTasks(PlayerPedId())
294 | TriggerServerEvent('cr-storeextras:server:GiveOrangeSlushy')
295 | if Config.Cooldowns.Cooldown == true then
296 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
297 | end
298 | end, function()
299 | ClearPedTasks(PlayerPedId())
300 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
301 | end)
302 | else
303 | ClearPedTasks(PlayerPedId())
304 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
305 | end
306 | end, math.random(4, 8), math.random(10, 12))
307 | elseif Config.Framework.Minigame == 'qb-skillbar' then
308 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
309 | Skillbar.Start({
310 | duration = math.random(3500, 5000),
311 | pos = math.random(10, 30),
312 | width = math.random(10, 20),
313 | }, function()
314 | if Config.Framework.InteractSound == true then
315 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
316 | end
317 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
318 | QBCore.Functions.Progressbar("orange_slushy", "Pouring a Orange Slushy...", 10000, false, true, {
319 | disableMovement = true,
320 | disableCarMovement = true,
321 | disableMouse = false,
322 | disableCombat = true,
323 | }, {}, {}, {}, function()
324 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
325 | ClearPedTasks(PlayerPedId())
326 | TriggerServerEvent('cr-storeextras:server:GiveOrangeSlushy')
327 | if Config.Cooldowns.Cooldown == true then
328 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
329 | end
330 | end, function()
331 | ClearPedTasks(PlayerPedId())
332 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
333 | end)
334 | end, function()
335 | ClearPedTasks(PlayerPedId())
336 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
337 | end)
338 | elseif Config.Framework.Minigame == false then
339 | if Config.Framework.InteractSound == true then
340 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
341 | end
342 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
343 | QBCore.Functions.Progressbar("orange_slushy", "Pouring a Orange Slushy...", 10000, false, true, {
344 | disableMovement = true,
345 | disableCarMovement = true,
346 | disableMouse = false,
347 | disableCombat = true,
348 | }, {}, {}, {}, function()
349 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
350 | ClearPedTasks(PlayerPedId())
351 | TriggerServerEvent('cr-storeextras:server:GiveOrangeSlushy')
352 | if Config.Cooldowns.Cooldown == true then
353 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
354 | end
355 | end, function()
356 | ClearPedTasks(PlayerPedId())
357 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
358 | end)
359 | end
360 | else
361 | StoreExtraNotifications(3, Config.Notifications["SlushyCooldownActive"], Config.Notifications["okok_Title"])
362 | end
363 | end)
364 | end)
365 |
366 | RegisterNetEvent('cr-storeextras:client:YellowSlushy')
367 | AddEventHandler('cr-storeextras:client:YellowSlushy', function()
368 | local ped = PlayerPedId()
369 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SlushyCooldown', function(result)
370 | if not result then
371 | if Config.Framework.Minigame == 'qb-lock' then
372 | local seconds = math.random(10, 12)
373 | local circles = math.random(4, 8)
374 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
375 | if success then
376 | if Config.Framework.InteractSound == true then
377 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
378 | end
379 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
380 | QBCore.Functions.Progressbar("yellow_slushy", "Pouring a Yellow Slushy...", 10000, false, true, {
381 | disableMovement = true,
382 | disableCarMovement = true,
383 | disableMouse = false,
384 | disableCombat = true,
385 | }, {}, {}, {}, function()
386 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
387 | ClearPedTasks(PlayerPedId())
388 | TriggerServerEvent('cr-storeextras:server:GiveYellowSlushy')
389 | if Config.Cooldowns.Cooldown == true then
390 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
391 | end
392 | end, function()
393 | ClearPedTasks(PlayerPedId())
394 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
395 | end)
396 | else
397 | ClearPedTasks(PlayerPedId())
398 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
399 | end
400 | elseif Config.Framework.Minigame == 'ps-ui' then
401 | exports['ps-ui']:Circle(function(success)
402 | if success then
403 | if Config.Framework.InteractSound == true then
404 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
405 | end
406 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
407 | QBCore.Functions.Progressbar("yellow_slushy", "Pouring a Yellow Slushy...", 10000, false, true, {
408 | disableMovement = true,
409 | disableCarMovement = true,
410 | disableMouse = false,
411 | disableCombat = true,
412 | }, {}, {}, {}, function()
413 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
414 | ClearPedTasks(PlayerPedId())
415 | TriggerServerEvent('cr-storeextras:server:GiveYellowSlushy')
416 | if Config.Cooldowns.Cooldown == true then
417 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
418 | end
419 | end, function()
420 | ClearPedTasks(PlayerPedId())
421 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
422 | end)
423 | else
424 | ClearPedTasks(PlayerPedId())
425 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
426 | end
427 | end, math.random(4, 8), math.random(10, 12))
428 | elseif Config.Framework.Minigame == 'qb-skillbar' then
429 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
430 | Skillbar.Start({
431 | duration = math.random(3500, 5000),
432 | pos = math.random(10, 30),
433 | width = math.random(10, 20),
434 | }, function()
435 | if Config.Framework.InteractSound == true then
436 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
437 | end
438 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
439 | QBCore.Functions.Progressbar("yellow_slushy", "Pouring a Yellow Slushy...", 10000, false, true, {
440 | disableMovement = true,
441 | disableCarMovement = true,
442 | disableMouse = false,
443 | disableCombat = true,
444 | }, {}, {}, {}, function()
445 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
446 | ClearPedTasks(PlayerPedId())
447 | TriggerServerEvent('cr-storeextras:server:GiveYellowSlushy')
448 | if Config.Cooldowns.Cooldown == true then
449 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
450 | end
451 | end, function()
452 | ClearPedTasks(PlayerPedId())
453 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
454 | end)
455 | end, function()
456 | ClearPedTasks(PlayerPedId())
457 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
458 | end)
459 | elseif Config.Framework.Minigame == false then
460 | if Config.Framework.InteractSound == true then
461 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
462 | end
463 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
464 | QBCore.Functions.Progressbar("yellow_slushy", "Pouring a Yellow Slushy...", 10000, false, true, {
465 | disableMovement = true,
466 | disableCarMovement = true,
467 | disableMouse = false,
468 | disableCombat = true,
469 | }, {}, {}, {}, function()
470 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
471 | ClearPedTasks(PlayerPedId())
472 | TriggerServerEvent('cr-storeextras:server:GiveYellowSlushy')
473 | if Config.Cooldowns.Cooldown == true then
474 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
475 | end
476 | end, function()
477 | ClearPedTasks(PlayerPedId())
478 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
479 | end)
480 | end
481 | else
482 | StoreExtraNotifications(3, Config.Notifications["SlushyCooldownActive"], Config.Notifications["okok_Title"])
483 | end
484 | end)
485 | end)
486 |
487 | RegisterNetEvent('cr-storeextras:client:BlueSlushy')
488 | AddEventHandler('cr-storeextras:client:BlueSlushy', function()
489 | local ped = PlayerPedId()
490 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SlushyCooldown', function(result)
491 | if not result then
492 | if Config.Framework.Minigame == 'qb-lock' then
493 | local seconds = math.random(10, 12)
494 | local circles = math.random(4, 8)
495 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
496 | if success then
497 | if Config.Framework.InteractSound == true then
498 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
499 | end
500 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
501 | QBCore.Functions.Progressbar("blue_slushy", "Pouring a Blue Slushy...", 10000, false, true, {
502 | disableMovement = true,
503 | disableCarMovement = true,
504 | disableMouse = false,
505 | disableCombat = true,
506 | }, {}, {}, {}, function()
507 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
508 | ClearPedTasks(PlayerPedId())
509 | TriggerServerEvent('cr-storeextras:server:GiveBlueSlushy')
510 | if Config.Cooldowns.Cooldown == true then
511 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
512 | end
513 | end, function()
514 | ClearPedTasks(PlayerPedId())
515 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
516 | end)
517 | else
518 | ClearPedTasks(PlayerPedId())
519 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
520 | end
521 | elseif Config.Framework.Minigame == 'ps-ui' then
522 | exports['ps-ui']:Circle(function(success)
523 | if success then
524 | if Config.Framework.InteractSound == true then
525 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
526 | end
527 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
528 | QBCore.Functions.Progressbar("blue_slushy", "Pouring a Blue Slushy...", 10000, false, true, {
529 | disableMovement = true,
530 | disableCarMovement = true,
531 | disableMouse = false,
532 | disableCombat = true,
533 | }, {}, {}, {}, function()
534 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
535 | ClearPedTasks(PlayerPedId())
536 | TriggerServerEvent('cr-storeextras:server:GiveBlueSlushy')
537 | if Config.Cooldowns.Cooldown == true then
538 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
539 | end
540 | end, function()
541 | ClearPedTasks(PlayerPedId())
542 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
543 | end)
544 | else
545 | ClearPedTasks(PlayerPedId())
546 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
547 | end
548 | end, math.random(4, 8), math.random(10, 12))
549 | elseif Config.Framework.Minigame == 'qb-skillbar' then
550 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
551 | Skillbar.Start({
552 | duration = math.random(3500, 5000),
553 | pos = math.random(10, 30),
554 | width = math.random(10, 20),
555 | }, function()
556 | if Config.Framework.InteractSound == true then
557 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
558 | end
559 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
560 | QBCore.Functions.Progressbar("blue_slushy", "Pouring a Blue Slushy...", 10000, false, true, {
561 | disableMovement = true,
562 | disableCarMovement = true,
563 | disableMouse = false,
564 | disableCombat = true,
565 | }, {}, {}, {}, function()
566 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
567 | ClearPedTasks(PlayerPedId())
568 | TriggerServerEvent('cr-storeextras:server:GiveBlueSlushy')
569 | if Config.Cooldowns.Cooldown == true then
570 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
571 | end
572 | end, function()
573 | ClearPedTasks(PlayerPedId())
574 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
575 | end)
576 | end, function()
577 | ClearPedTasks(PlayerPedId())
578 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
579 | end)
580 | elseif Config.Framework.Minigame == false then
581 | if Config.Framework.InteractSound == true then
582 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
583 | end
584 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
585 | QBCore.Functions.Progressbar("blue_slushy", "Pouring a Blue Slushy...", 10000, false, true, {
586 | disableMovement = true,
587 | disableCarMovement = true,
588 | disableMouse = false,
589 | disableCombat = true,
590 | }, {}, {}, {}, function()
591 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
592 | ClearPedTasks(PlayerPedId())
593 | TriggerServerEvent('cr-storeextras:server:GiveBlueSlushy')
594 | if Config.Cooldowns.Cooldown == true then
595 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
596 | end
597 | end, function()
598 | ClearPedTasks(PlayerPedId())
599 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
600 | end)
601 | end
602 | else
603 | StoreExtraNotifications(3, Config.Notifications["SlushyCooldownActive"], Config.Notifications["okok_Title"])
604 | end
605 | end)
606 | end)
607 |
608 | RegisterNetEvent('cr-storeextras:client:RainbowSlushy')
609 | AddEventHandler('cr-storeextras:client:RainbowSlushy', function()
610 | local ped = PlayerPedId()
611 | QBCore.Functions.TriggerCallback('cr-storeextras:server:SlushyCooldown', function(result)
612 | if not result then
613 | if Config.Framework.Minigame == 'qb-lock' then
614 | local seconds = math.random(4, 8)
615 | local circles = math.random(6, 10)
616 | local success = exports['qb-lock']:StartLockPickCircle(circles, seconds)
617 | if success then
618 | if Config.Framework.InteractSound == true then
619 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
620 | end
621 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
622 | QBCore.Functions.Progressbar("rainbow_slushy", "Pouring a Rainbow Slushy...", 10000, false, true, {
623 | disableMovement = true,
624 | disableCarMovement = true,
625 | disableMouse = false,
626 | disableCombat = true,
627 | }, {}, {}, {}, function()
628 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
629 | ClearPedTasks(PlayerPedId())
630 | TriggerServerEvent('cr-storeextras:server:GiveRainbowSlushy')
631 | if Config.Cooldowns.Cooldown == true then
632 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
633 | end
634 | end, function()
635 | ClearPedTasks(PlayerPedId())
636 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
637 | end)
638 | else
639 | ClearPedTasks(PlayerPedId())
640 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
641 | end
642 | elseif Config.Framework.Minigame == 'ps-ui' then
643 | exports['ps-ui']:Circle(function(success)
644 | if success then
645 | if Config.Framework.InteractSound == true then
646 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
647 | end
648 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
649 | QBCore.Functions.Progressbar("rainbow_slushy", "Pouring a Rainbow Slushy...", 10000, false, true, {
650 | disableMovement = true,
651 | disableCarMovement = true,
652 | disableMouse = false,
653 | disableCombat = true,
654 | }, {}, {}, {}, function()
655 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
656 | ClearPedTasks(PlayerPedId())
657 | TriggerServerEvent('cr-storeextras:server:GiveRainbowSlushy')
658 | if Config.Cooldowns.Cooldown == true then
659 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
660 | end
661 | end, function()
662 | ClearPedTasks(PlayerPedId())
663 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
664 | end)
665 | else
666 | ClearPedTasks(PlayerPedId())
667 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
668 | end
669 | end, math.random(6, 10), math.random(4, 8))
670 | elseif Config.Framework.Minigame == 'qb-skillbar' then
671 | local Skillbar = exports['qb-skillbar']:GetSkillbarObject()
672 | Skillbar.Start({
673 | duration = math.random(1250, 2000),
674 | pos = math.random(10, 30),
675 | width = math.random(10, 20),
676 | }, function()
677 | if Config.Framework.InteractSound == true then
678 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
679 | end
680 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
681 | QBCore.Functions.Progressbar("rainbow_slushy", "Pouring a Rainbow Slushy...", 10000, false, true, {
682 | disableMovement = true,
683 | disableCarMovement = true,
684 | disableMouse = false,
685 | disableCombat = true,
686 | }, {}, {}, {}, function()
687 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
688 | ClearPedTasks(PlayerPedId())
689 | TriggerServerEvent('cr-storeextras:server:GiveRainbowSlushy')
690 | if Config.Cooldowns.Cooldown == true then
691 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
692 | end
693 | end, function()
694 | ClearPedTasks(PlayerPedId())
695 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
696 | end)
697 | end, function()
698 | ClearPedTasks(PlayerPedId())
699 | StoreExtraNotifications(3, Config.Notifications["SlushyMinigameFail"], Config.Notifications["okok_Title"])
700 | end)
701 | elseif Config.Framework.Minigame == false then
702 | if Config.Framework.InteractSound == true then
703 | TriggerServerEvent("InteractSound_SV:PlayOnSource", "pour-slushy", 0.3)
704 | end
705 | TaskStartScenarioInPlace(ped, "WORLD_HUMAN_HANG_OUT_STREET", 0, true)
706 | QBCore.Functions.Progressbar("rainbow_slushy", "Pouring a Rainbow Slushy...", 10000, false, true, {
707 | disableMovement = true,
708 | disableCarMovement = true,
709 | disableMouse = false,
710 | disableCombat = true,
711 | }, {}, {}, {}, function()
712 | StoreExtraNotifications(1, Config.Notifications["SlushyGive"], Config.Notifications["okok_Title"])
713 | ClearPedTasks(PlayerPedId())
714 | TriggerServerEvent('cr-storeextras:server:GiveRainbowSlushy')
715 | if Config.Cooldowns.Cooldown == true then
716 | TriggerServerEvent('cr-storeextras:server:SetSlushyCooldown')
717 | end
718 | end, function()
719 | ClearPedTasks(PlayerPedId())
720 | StoreExtraNotifications(3, Config.Notifications["ProgressbarCancelled"], Config.Notifications["okok_Title"])
721 | end)
722 | end
723 | else
724 | StoreExtraNotifications(3, Config.Notifications["SlushyCooldownActive"], Config.Notifications["okok_Title"])
725 | end
726 | end)
727 | end)
728 |
--------------------------------------------------------------------------------
/config.lua:
--------------------------------------------------------------------------------
1 | Config = {}
2 |
3 | Config.Framework = {
4 |
5 | Target = 'qb-target',
6 | -- 'qb-target' = QBCore Target
7 | -- 'qtarget' = QTarget
8 |
9 | Minigame = 'qb-skillbar',
10 | -- 'qb-lock' = Minigame Enabled(QBCore Lock - NP Inspired)
11 | -- 'qb-skillbar' = Minigame Enabled(QBCore Skillbar)
12 | -- 'ps-ui' = Minigame Enabled(PS UI Lock Minigame)
13 | -- false = Minigame Disabled
14 |
15 | InteractSound = false
16 | -- true = Machine Sounds Enabled
17 | -- false = Machine Sounds Disabled
18 | }
19 |
20 | Config.Cooldowns = {
21 | Cooldown = true, -- true = Cooldown to 'Purchase' Extra Enabled | false = Cooldown to 'Purchase' Extra Disabled
22 | SlushyCooldownTime = 5, -- Time is in Minutes
23 | SluckyBuckyDonutCooldownTime = 5, -- Time is in Minutes
24 | IceCreamCooldownTime = 5, -- Time is in Minutes
25 | GumballStandCooldownTime = 5 -- Time is in Minutes
26 | }
27 |
28 | Config.Props = {
29 | SlushyProp = {
30 | "prop_slush_dispenser",
31 | "prop_juice_dispenser",
32 | },
33 | DonutProp = {
34 | "v_ret_247_donuts",
35 | },
36 | IceCreamProp = {
37 | "", -- Unkown
38 | },
39 | BubbleGumStandProp = {
40 | "prop_gumball_03",
41 | }
42 | }
43 |
44 | Config.CustomProps = {
45 | [1] = { -- Add as many Props as you wish
46 | Enabled = true, -- Prop Enabled / Disabled
47 | PropCoords = vector4(0, 0, 0, 0), -- Prop Coordinate
48 | PropModel = '' -- Prop Model | https://forge.plebmasters.de/
49 | }
50 | }
51 |
52 | Config.Prices = {
53 | -- Slushies
54 | RedSlushy = 3,
55 | GreenSlushy = 3,
56 | OrangeSlushy = 3,
57 | YellowSlushy = 3,
58 | BlueSlushy = 3,
59 | RainbowSlushy = 3,
60 | -- Slucky Bucky Donut
61 | SluckyBuckyDonut = 8,
62 | -- Ice Cream
63 | VanillaIceCream = 6,
64 | ChocolateIceCream = 6,
65 | MintIceCream = 6,
66 | CookiesAndCreamIceCream = 6,
67 | -- GumBall
68 | GumBall = 1
69 | }
70 |
71 | Config.BubbleGumStandFailChance = true -- true = Chance for Gumball Stand to not give GumBall Enabled | false = Chancel for Gumball Stand to not give GumBall Disabled
72 |
73 | --Notification Settings
74 | Config.Notify = "qb" -- "qb" = Default (QBCore) | "okok" = OkOkNotify | "mythic" = Mythic Notifications | "tnj" = tnj-notify | "chat" = Simple Chat Message
75 | Config.Notifications = {
76 | -- Success's
77 | ["SlushyGive"] = "You\'ve poured a Slushy!",
78 | ["SluckyDonutGive"] = "You\'ve grabbed a Super Donut!",
79 | ["IceCreamGive"] = "You\'ve scooped some Ice Cream!",
80 | ["BubbleGumGive"] = "You\'ve received a BubbleGum!",
81 |
82 | -- Cancel's
83 | ["ProgressbarCancelled"] = "You stopped grabbing the Product, why?",
84 |
85 | -- Fail's
86 | ["SlushyMinigameFail"] = "You failed to discretely pour the Product...",
87 | ["SluckyBuckyDonutMinigameFail"] = "You failed to discretely grab the Product...",
88 | ["IceCreamMinigameFail"] = "You failed to discretely scoop the Product...",
89 | ["BubbleGumStandFail"] = "You failed to discretely wait on the Product...",
90 | ["BubbleGumStandFailGive"] = "For some reason the Stand didn\'t give you a GumBall?!",
91 |
92 | -- Cooldown's
93 | ["SlushyCooldownActive"] = "The Machine seems to have run out of Slush?",
94 | ["SluckyBuckyDonutCooldownActive"] = "The Machine seems to have run out of Donuts?",
95 | ["IceCreamCooldownActive"] = "The Machine seems to have run out of Ice Cream?",
96 | ["BubbleGumStandCooldownActive"] = "The Machine seems to have run out of GumBalls?",
97 |
98 | --OkOk Titles
99 | ["okok_Title"] = "Store Aid"
100 | }
--------------------------------------------------------------------------------
/fxmanifest.lua:
--------------------------------------------------------------------------------
1 | fx_version 'cerulean'
2 | game 'gta5'
3 |
4 | author 'Constant Development'
5 | description 'Local Store Extra Options/Functions'
6 | version '2.5'
7 |
8 | shared_script 'config.lua'
9 | client_script 'client/*.lua'
10 | server_script 'server/server.lua'
11 |
12 | lua54 'yes'
--------------------------------------------------------------------------------
/images/banana_gumball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/banana_gumball.png
--------------------------------------------------------------------------------
/images/blueberry_gumball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/blueberry_gumball.png
--------------------------------------------------------------------------------
/images/blueslushy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/blueslushy.png
--------------------------------------------------------------------------------
/images/bubblegum_gumball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/bubblegum_gumball.png
--------------------------------------------------------------------------------
/images/cherry_gumball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/cherry_gumball.png
--------------------------------------------------------------------------------
/images/chocolateicecream.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/chocolateicecream.png
--------------------------------------------------------------------------------
/images/cookiesandcreamicecream.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/cookiesandcreamicecream.png
--------------------------------------------------------------------------------
/images/greenslushy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/greenslushy.png
--------------------------------------------------------------------------------
/images/mint_gumball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/mint_gumball.png
--------------------------------------------------------------------------------
/images/minticecream.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/minticecream.png
--------------------------------------------------------------------------------
/images/orangeslushy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/orangeslushy.png
--------------------------------------------------------------------------------
/images/rainbowslushy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/rainbowslushy.png
--------------------------------------------------------------------------------
/images/redslushy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/redslushy.png
--------------------------------------------------------------------------------
/images/superdonut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/superdonut.png
--------------------------------------------------------------------------------
/images/vanillaicecream.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/vanillaicecream.png
--------------------------------------------------------------------------------
/images/yellowslushy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/images/yellowslushy.png
--------------------------------------------------------------------------------
/server/server.lua:
--------------------------------------------------------------------------------
1 | local QBCore = exports['qb-core']:GetCoreObject()
2 |
3 | isSlushyCoolDownActive = false
4 | isSluckyBuckyDonutCoolDownActive = false
5 | isIceCreamCoolDownActive = false
6 | isGumballStandCoolDownActive = false
7 |
8 | RegisterNetEvent('cr-storeextras:server:GiveYellowSlushy', function()
9 | local src = source
10 | local Player = QBCore.Functions.GetPlayer(src)
11 | Player.Functions.AddItem("yellowslushy", 1, false)
12 | Player.Functions.RemoveMoney('cash', Config.Prices.YellowSlushy)
13 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["yellowslushy"], "add")
14 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Yellow Slushy')
15 | end)
16 |
17 | RegisterNetEvent('cr-storeextras:server:GiveOrangeSlushy', function()
18 | local src = source
19 | local Player = QBCore.Functions.GetPlayer(src)
20 | Player.Functions.AddItem("orangeslushy", 1, false)
21 | Player.Functions.RemoveMoney('cash', Config.Prices.OrangeSlushy)
22 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["orangeslushy"], "add")
23 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Orange Slushy')
24 | end)
25 |
26 | RegisterNetEvent('cr-storeextras:server:GiveBlueSlushy', function()
27 | local src = source
28 | local Player = QBCore.Functions.GetPlayer(src)
29 | Player.Functions.AddItem("blueslushy", 1, false)
30 | Player.Functions.RemoveMoney('cash', Config.Prices.BlueSlushy)
31 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["blueslushy"], "add")
32 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Blue Slushy')
33 | end)
34 |
35 | RegisterNetEvent('cr-storeextras:server:GiveRainbowSlushy', function()
36 | local src = source
37 | local Player = QBCore.Functions.GetPlayer(src)
38 | Player.Functions.AddItem("rainbowslushy", 1, false)
39 | Player.Functions.RemoveMoney('cash', Config.Prices.RainbowSlushy)
40 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["rainbowslushy"], "add")
41 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Rainbow Slushy')
42 | end)
43 |
44 | RegisterNetEvent('cr-storeextras:server:GiveRedSlushy', function()
45 | local src = source
46 | local Player = QBCore.Functions.GetPlayer(src)
47 | Player.Functions.AddItem("redslushy", 1, false)
48 | Player.Functions.RemoveMoney('cash', Config.Prices.RedSlushy)
49 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["redslushy"], "add")
50 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Red Slushy')
51 | end)
52 |
53 | RegisterNetEvent('cr-storeextras:server:GiveGreenSlushy', function()
54 | local src = source
55 | local Player = QBCore.Functions.GetPlayer(src)
56 | Player.Functions.AddItem("greenslushy", 1, false)
57 | Player.Functions.RemoveMoney('cash', Config.Prices.GreenSlushy)
58 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["greenslushy"], "add")
59 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Green Slushy')
60 | end)
61 |
62 | RegisterNetEvent('cr-storeextras:server:GiveSluckyDonut', function()
63 | local src = source
64 | local Player = QBCore.Functions.GetPlayer(src)
65 | Player.Functions.AddItem("superdonut", 1, false)
66 | Player.Functions.RemoveMoney('cash', Config.Prices.SluckyBuckyDonut)
67 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["superdonut"], "add")
68 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Slucky Bucky Donut')
69 | end)
70 |
71 | RegisterNetEvent('cr-storeextras:server:GiveVanillaIceCream', function()
72 | local src = source
73 | local Player = QBCore.Functions.GetPlayer(src)
74 | Player.Functions.AddItem("vanillaicecream", 1, false)
75 | Player.Functions.RemoveMoney('cash', Config.Prices.VanillaIceCream)
76 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["vanillaicecream"], "add")
77 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Vanilla IceCream')
78 | end)
79 |
80 | RegisterNetEvent('cr-storeextras:server:GiveChocolateIceCream', function()
81 | local src = source
82 | local Player = QBCore.Functions.GetPlayer(src)
83 | Player.Functions.AddItem("chocolateicecream", 1, false)
84 | Player.Functions.RemoveMoney('cash', Config.Prices.ChocolateIceCream)
85 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["chocolateicecream"], "add")
86 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Chocolate IceCream')
87 | end)
88 |
89 | RegisterNetEvent('cr-storeextras:server:GiveMintIceCream', function()
90 | local src = source
91 | local Player = QBCore.Functions.GetPlayer(src)
92 | Player.Functions.AddItem("minticecream", 1, false)
93 | Player.Functions.RemoveMoney('cash', Config.Prices.MintIceCream)
94 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["minticecream"], "add")
95 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Mint IceCream')
96 | end)
97 |
98 | RegisterNetEvent('cr-storeextras:server:GiveCookiesAndCreamIceCream', function()
99 | local src = source
100 | local Player = QBCore.Functions.GetPlayer(src)
101 | Player.Functions.AddItem("cookiesandcreamicecream", 1, false)
102 | Player.Functions.RemoveMoney('cash', Config.Prices.CookiesAndCreamIceCream)
103 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["cookiesandcreamicecream"], "add")
104 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Cookies & Cream IceCream')
105 | end)
106 |
107 | RegisterNetEvent('cr-storeextras:server:GiveBubbleGum', function()
108 | local src = source
109 | local Player = QBCore.Functions.GetPlayer(src)
110 | local BubbleGum = math.random(1, 52)
111 | if BubbleGum >= 1 then
112 | Player.Functions.AddItem("bubblegum_gumball", 1, false)
113 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["bubblegum_gumball"], "add")
114 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Bubblegum Gumball')
115 | elseif BubbleGum >= 11 then
116 | Player.Functions.AddItem("blueberry_gumball", 1, false)
117 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["blueberry_gumball"], "add")
118 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Blueberry Gumball')
119 | elseif BubbleGum >= 21 then
120 | Player.Functions.AddItem("banana_gumball", 1, false)
121 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["banana_gumball"], "add")
122 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Banana Gumball')
123 | elseif BubbleGum >= 31 then
124 | Player.Functions.AddItem("mint_gumball", 1, false)
125 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["mint_gumball"], "add")
126 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Mint Gumball')
127 | elseif BubbleGum >= 41 then
128 | Player.Functions.AddItem("cherry_gumball", 1, false)
129 | TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["cherry_gumball"], "add")
130 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**ItemName:** Cherry Gumball')
131 | elseif BubbleGum >= 51 then
132 | TriggerClientEvent('cr-storeextras:client:BubbleGumStandFail')
133 | TriggerEvent('qb-log:server:CreateLog', 'constantdevelopmentstoreextras', 'Store Extras', 'orange', '**PlayerName:** '..GetPlayerName(src)..'\n**Failed GumballStand**')
134 | end
135 | Player.Functions.RemoveMoney('cash', Config.Prices.GumBall)
136 | end)
137 |
138 | RegisterNetEvent('cr-storeextras:server:SetSlushyCooldown')
139 | AddEventHandler('cr-storeextras:server:SetSlushyCooldown', function()
140 | isSlushyCoolDownActive = true
141 | Wait((Config.Cooldowns.SlushyCooldownTime * 1000) * 60)
142 | isSlushyCoolDownActive = false
143 | end)
144 |
145 | QBCore.Functions.CreateCallback("cr-storeextras:server:SlushyCooldown",function(_, cb)
146 | if isSlushyCoolDownActive then
147 | cb(true)
148 | else
149 | cb(false)
150 | end
151 | end)
152 |
153 | RegisterNetEvent('cr-storeextras:server:SetSluckyBuckyDonutCooldown')
154 | AddEventHandler('cr-storeextras:server:SetSluckyBuckyDonutCooldown', function()
155 | isSluckyBuckyDonutCoolDownActive = true
156 | Wait((Config.Cooldowns.SluckyBuckyDonutCooldownTime * 1000) * 60)
157 | isSluckyBuckyDonutCoolDownActive = false
158 | end)
159 |
160 | QBCore.Functions.CreateCallback("cr-storeextras:server:SluckyBuckyDonutCooldown",function(_, cb)
161 | if isSluckyBuckyDonutCoolDownActive then
162 | cb(true)
163 | else
164 | cb(false)
165 | end
166 | end)
167 |
168 | RegisterNetEvent('cr-storeextras:server:SetIceCreamCooldown')
169 | AddEventHandler('cr-storeextras:server:SetIceCreamCooldown', function()
170 | isIceCreamCoolDownActive = true
171 | Wait((Config.Cooldowns.IceCreamCooldownTime * 1000) * 60)
172 | isIceCreamCoolDownActive = false
173 | end)
174 |
175 | QBCore.Functions.CreateCallback("cr-storeextras:server:IceCreamCooldown",function(_, cb)
176 | if isIceCreamCoolDownActive then
177 | cb(true)
178 | else
179 | cb(false)
180 | end
181 | end)
182 |
183 | RegisterNetEvent('cr-storeextras:server:SetGumballStandCooldown')
184 | AddEventHandler('cr-storeextras:server:SetGumballStandCooldown', function()
185 | isGumballStandCoolDownActive = true
186 | Wait((Config.Cooldowns.GumballStandCooldownTime * 1000) * 60)
187 | isGumballStandCoolDownActive = false
188 | end)
189 |
190 | QBCore.Functions.CreateCallback("cr-storeextras:server:GumBallStandCooldown",function(_, cb)
191 | if isGumballStandCoolDownActive then
192 | cb(true)
193 | else
194 | cb(false)
195 | end
196 | end)
--------------------------------------------------------------------------------
/sound/bubblegumstand.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/sound/bubblegumstand.ogg
--------------------------------------------------------------------------------
/sound/deepfried.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/sound/deepfried.ogg
--------------------------------------------------------------------------------
/sound/pour-slushy.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/sound/pour-slushy.ogg
--------------------------------------------------------------------------------
/sound/scoopicecream.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Constant-Development/cr-storeextras/3f9ea794760f2e7c6d1050d9ea748152b3a77ed7/sound/scoopicecream.ogg
--------------------------------------------------------------------------------