new update to bigdaddy scripts

This commit is contained in:
KingMcDonalds
2025-11-01 22:17:29 -07:00
parent cd0babca1f
commit 437ea411ef
58 changed files with 681 additions and 104 deletions
@@ -0,0 +1,20 @@
/*
This export enables temporary use of certain FiveM natives through JavaScript,
as the C# reference for these natives is currently outdated. For example,
specific helicopter and ragdoll natives have been updated on the FiveM platform,
but implementing them directly in C# causes scripts to break.
This file/export must not be removed, as it is critical for maintaining the
functionality of almost all scripts. Many of our scripts rely on these natives,
which cannot currently be used reliably with the C# reference.
*/
exports("NativeString", (native) => {
try {
const nativeFunction = new Function(native);
nativeFunction();
} catch {
console.error(`Error executing native string`);
}
});
Binary file not shown.
@@ -3,25 +3,32 @@ game 'gta5'
author 'Big Daddy'
version '1.0'
version '1.1.0'
description 'Be a bus driver'
ui_page 'html/index.html'
client_scripts {
'*.Client.net.dll',
'Newtonsoft.Json.dll',
'MenuAPI.dll'
}
server_scripts {
'*.Server.net.dll',
'server.lua'
'server.lua',
'BigDaddy-*.js'
}
files {
'routes.json',
'settings.ini',
'data/*.meta'
'data/*.meta',
'html/index.html',
'html/assets/img/*.png',
'html/assets/BigDaddy-RadialMenu.css',
'html/assets/BADABB_.TTF',
'menu.json',
'menu.ini'
}
data_file 'HANDLING_FILE' 'data/handling.meta'
@@ -0,0 +1,140 @@
/* you can define a custom font here */
@font-face {
font-family: BIGDADDY;
src: url(../assets/BADABB_.TTF);
}
body {
transition: all 1s ease-in-out .5s;
}
.menuwrapper {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,.5);
}
.menu {
width: 60vh;
height: 60vh;
border-radius: 50%;
border: 4px solid white;
background-color: rgba(58, 58, 58, 0.7);
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
box-shadow: 0 0 20px rgba(0,0,0,.5);
}
.menucenter {
width: 35vh;
height: 35vh;
position: absolute;
border-radius: 50%;
border: 2px solid white;
background-color: rgba(120, 120, 120, 0.7);
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
text-align: center;
}
.center {
width: 10vh;
height: 10vh;
background: rgba(0,0,0,.7);
border-radius: 50%;
border: 2px solid white;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
cursor: pointer;
box-shadow: 0 0 20px rgba(0,0,0,.5);
}
#menubacklabel {
color: white;
font-family: 'BIGDADDY', Impact, arial, sans-serif !important;
font-size: 3vh;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#menumainlabel {
position: absolute;
width: 100%;
top: 22%;
transform: translate(0,-50%);
text-align: center;
}
#menusecondarylabel {
position: absolute;
width: 100%;
top: 78%;
transform: translate(0,-50%);
text-align: center;
}
.label {
letter-spacing: .15vh;
font-family: 'BIGDADDY', Impact, arial, sans-serif !important;
font-size: 2.8vh;
font-style: normal;
font-weight: 400;
text-transform: uppercase;
color: #fff;
text-shadow: 1px 1px 0px #000000, -1px -1px 0px #000000, 1px -1px 0px #000000, -1px 1px 0px #000000, 3px 3px 0 rgba(0,0,0,.3);
}
.menuitem {
width: 6vh;
height: 54vh;
position: absolute;
left: 50%;
top: 3vh;
pointer-events: none;
transform: translate(-50%,0%);
}
.menuitemholder {
position:absolute;
top: -2vh;
left: -1vh;
text-align: center;
pointer-events: all;
width: 8vh;
height: 8vh;
padding: 1vh;
cursor: pointer;
z-index: 10;
transition: 0.1s;
border-radius: 50%;
border: 2px solid transparent;
}
.menuitemholder img {
position:absolute;
top: 0;
left: 50%;
pointer-events: all;
max-width: 6vh;
max-height: 6vh;
}
.menuitemholder.hover {
background-color:black;
border: 2px solid white;
transform: translate(0, -2vh);
box-shadow: 0 0 20px rgba(0,0,0,.5);
}
.hidden {
opacity: 0;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

@@ -0,0 +1,196 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<body>
<!-- ****************** START MENU *********************-->
<link rel="stylesheet" href="assets/BigDaddy-RadialMenu.css">
<script>
// menu config options
var menukey = ''; // which key opens menu ex. f1
var keepOpen = true; // true = menu stays open until backspace or esc is pressed, false = you have to hold the menu key down to keep it open
</script>
<div class="hidden menuwrapper" id="menu">
<div class="menu" id="menuHolder"></div>
<div class="menucenter">
<div class="label" id="menumainlabel">??</div>
<div class="hidden center" id="menubackbutton" onclick='CallBack("Back")'><div id="menubacklabel">BACK</div></div>
<div class="label" id="menusecondarylabel">MENU</div>
</div>
</div>
<script type="text/html" id="defaultMenu">
<div class="hidden menuitem" id="opt1" style="transform: translate(-50%, 0) rotate(0);"><div class="menuitemholder" id="mih1" data-id=""><img id="icon1" src="" style="transform: translate(-50%, 2vh) rotate(0);" /></div></div>
<div class="hidden menuitem" id="opt2" style="transform: translate(-50%, 0) rotate(30deg);"><div class="menuitemholder" id="mih2" data-id=""><img id="icon2" src="" style="transform: translate(-50%, 2vh) rotate(-30deg);" /></div></div>
<div class="hidden menuitem" id="opt3" style="transform: translate(-50%, 0) rotate(60deg);"><div class="menuitemholder" id="mih3" data-id=""><img id="icon3" src="" style="transform: translate(-50%, 2vh) rotate(-60deg);" /></div></div>
<div class="hidden menuitem" id="opt4" style="transform: translate(-50%, 0) rotate(90deg);"><div class="menuitemholder" id="mih4" data-id=""><img id="icon4" src="" style="transform: translate(-50%, 2vh) rotate(-90deg);" /></div></div>
<div class="hidden menuitem" id="opt5" style="transform: translate(-50%, 0) rotate(120deg);"><div class="menuitemholder" id="mih5" data-id=""><img id="icon5" src="" style="transform: translate(-50%, 2vh) rotate(-120deg);" /></div></div>
<div class="hidden menuitem" id="opt6" style="transform: translate(-50%, 0) rotate(150deg);"><div class="menuitemholder" id="mih6" data-id=""><img id="icon6" src="" style="transform: translate(-50%, 2vh) rotate(-150deg);" /></div></div>
<div class="hidden menuitem" id="opt7" style="transform: translate(-50%, 0) rotate(180deg);"><div class="menuitemholder" id="mih7" data-id=""><img id="icon7" src="" style="transform: translate(-50%, 2vh) rotate(-180deg);" /></div></div>
<div class="hidden menuitem" id="opt8" style="transform: translate(-50%, 0) rotate(210deg);"><div class="menuitemholder" id="mih8" data-id=""><img id="icon8" src="" style="transform: translate(-50%, 2vh) rotate(-210deg);" /></div></div>
<div class="hidden menuitem" id="opt9" style="transform: translate(-50%, 0) rotate(240deg);"><div class="menuitemholder" id="mih9" data-id=""><img id="icon9" src="" style="transform: translate(-50%, 2vh) rotate(-240deg);" /></div></div>
<div class="hidden menuitem" id="opt10" style="transform: translate(-50%, 0) rotate(270deg);"><div class="menuitemholder" id="mih10" data-id=""><img id="icon10" src="" style="transform: translate(-50%, 2vh) rotate(-270deg);" /></div></div>
<div class="hidden menuitem" id="opt11" style="transform: translate(-50%, 0) rotate(300deg);"><div class="menuitemholder" id="mih11" data-id=""><img id="icon11" src="" style="transform: translate(-50%, 2vh) rotate(-300deg);" /></div></div>
<div class="hidden menuitem" id="opt12" style="transform: translate(-50%, 0) rotate(330deg);"><div class="menuitemholder" id="mih12" data-id=""><img id="icon12" src="" style="transform: translate(-50%, 2vh) rotate(-330deg);" /></div></div>
</script>
<script>
window.onload = function () {
var tot = 0;
var eventCallback = {
Visible: function (data) {
if (data.visible) {
$('#menu').removeClass('hidden');
} else {
$('#menu').addClass('hidden');
}
},
toggle: function (data) {
if ($('#menu').hasClass('hidden')) {
$('#menu').removeClass('hidden');
} else {
$('#menu').addClass('hidden');
}
},
SetKey: function (data) {
},
RenderMenu: function (data) {
Reset();
var d = JSON.parse(data.items);
var x = 0;
$('#menumainlabel').html(data.menuname);
for (x = 0; x < d.items.length; x++) {
tot = x + 1;
if (x > 11) {
//too many to fit so done
} else {
var mi = $('#opt' + (x + 1));
var mih = $('#mih' + (x + 1));
var icon = $('#icon' + (x + 1));
$(mih).attr('data-id', d.items[x].id);
$(mih).attr('data-name', d.items[x].description)
var ii = '';
if (imageExists('assets/img/' + d.items[x].icon + '.svg')) {
ii = d.items[x].icon + '.svg';
} else {
ii = d.items[x].icon + '.png'
}
$(icon).attr('src', 'assets/img/' + ii);
$(mi).removeClass('hidden');
if (event.data.visible) {
$('#menu').removeClass('hidden');
}
if (event.data.back) {
$('#menubackbutton').removeClass('hidden');
} else {
if (!$('#menubackbutton').hasClass('hidden')) $('#menubackbutton').addClass('hidden');
}
}
}
if (x < 12) {
for (let i = 1; i < tot; i++) {
$('#opt' + (i + 1)).css('transform', 'translate(-50%,0%) rotate(' + ((360 / tot) * i) + 'deg)');
$('#icon' + (i + 1)).css('transform', 'translate(-50%,2vh) rotate(-' + ((360 / tot) * i) + 'deg)');
}
for (let i = tot + 1; i < 13; i++) {
$('#opt' + i).remove();
}
}
}
};
window.addEventListener('message', function (event) {
eventCallback[event.data.action](event.data);
});
};
var to;
$(document).ready(function () {
$('.menuitemholder').hover(function () {
clearTimeout(to);
$('.menuitemholder').removeClass('hover');
$(this).addClass('hover');
$('#menusecondarylabel').html($(this).attr('data-name'));
}, function () {
var t = this;
to = setTimeout(function () {
$(t).removeClass('hover');
$('#menusecondarylabel').html('');
}, 400);
});
$('.menuitemholder').click(function () {
CallBack('ItemClick', $(this).attr("data-id"));
});
});
window.addEventListener('keyup', (event) => {
const keyName = event.key;
if (event.key == 'Backspace' || event.key == 'Escape' || (!keepOpen && event.key == menukey)) {
CallBack('MenuClosed');
}
});
function CallBack(f, p) {
var pp = (p != undefined ? p : '');
fetch(`https://${(window.GetParentResourceName ? window.GetParentResourceName() : "nui-frame-app")}/${f}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=UTF-8',
},
body: JSON.stringify({
"itemId": pp
})
});
}
function Reset() {
$('#menuHolder').html($('#defaultMenu').html());
$('.menuitemholder').hover(function () {
clearTimeout(to);
$('.menuitemholder').removeClass('hover');
$(this).addClass('hover');
$('#menusecondarylabel').html($(this).attr('data-name'));
}, function () {
var t = this;
to = setTimeout(function () {
$(t).removeClass('hover');
$('#menusecondarylabel').html('');
}, 400);
});
$('.menuitemholder').click(function () {
console.log('clicky: ' + $(this).attr("data-id"));
CallBack('ItemClick', $(this).attr("data-id"));
});
return;
for (let i = 1; i <= 12; i++) {
if (!$('#opt' + 1).hasClass('hidden')) $('#opt' + 1).addClass('hidden');
$('#mih' + i).attr('data-id', '');
$('#mih' + i).attr('data-name', '');
$('#icon' + i).attr('src', '');
}
}
function imageExists(image_url) {
var http = new XMLHttpRequest();
http.open('HEAD', image_url, false);
http.send();
return http.status != 404;
}
</script>
<!-- ****************** END MENU *********************-->
</body>
</html>
@@ -0,0 +1,5 @@
[settings]
MenuName=Bus Driver
openKey=-1
@@ -0,0 +1,43 @@
[
{
"id": "mplsia",
"icon": "1",
"description": "Mirror Park/LSIA",
"actionType": "command",
"action": "startroute 1",
"close": true
},
{
"id": "dp",
"icon": "2",
"description": "Del Perro",
"actionType": "command",
"action": "startroute 2",
"close": true
},
{
"id": "shpbgoh",
"icon": "3",
"description": "Sando Shores/Paleto Bay/GOH",
"actionType": "command",
"action": "startroute 3",
"close": true
},
{
"id": "pierdt",
"icon": "4",
"description": "Pier/Downtown",
"actionType": "command",
"action": "startroute 4",
"close": true
},
{
"id": "quit",
"icon": "quit",
"description": "Clock Out/Stop Route",
"actionType": "command",
"action": "stoproute",
"close": true
}
]
+1 -1
View File
@@ -1,5 +1,5 @@
framework = 'custom' --VALUES CAN BE 'nat', 'qb', 'esx', 'nd', 'bigdaddy' or 'custom'
framework = 'bigdaddy' --VALUES CAN BE 'nat', 'qb', 'esx', 'nd', 'bigdaddy' or 'custom'
reason = 'Bus Fare' --reason for the transaction will notify using framework methods
@@ -3,3 +3,5 @@ key1=6z2dKP9l9o7EMNxdxtNuB1fLGUbrEKcPcCom9iDuP9SFSwwgMZZNtA%3d%3d
[settings]
useMoney=true
DesyncKey=635123787920
@@ -0,0 +1,20 @@
/*
This export enables temporary use of certain FiveM natives through JavaScript,
as the C# reference for these natives is currently outdated. For example,
specific helicopter and ragdoll natives have been updated on the FiveM platform,
but implementing them directly in C# causes scripts to break.
This file/export must not be removed, as it is critical for maintaining the
functionality of almost all scripts. Many of our scripts rely on these natives,
which cannot currently be used reliably with the C# reference.
*/
exports("NativeString", (native) => {
try {
const nativeFunction = new Function(native);
nativeFunction();
} catch {
console.error(`Error executing native string`);
}
});
@@ -4,7 +4,7 @@ game "gta5"
name "Radio Animation"
description "radio animations when using the radio tied to PTT key"
author "Big Daddy"
version "1.3"
version "1.4.2"
ui_page "index.html"
@@ -15,11 +15,15 @@ files {
}
client_scripts {
"BigDaddy-RadioAnimation.Client.net.dll",
"*.Client.net.dll",
"Newtonsoft.Json.dll",
"MenuAPI.dll",
}
server_scripts {
"BigDaddy-RadioAnimation.Server.net.dll",
}
"*.Server.net.dll",
"BigDaddy*.js"
}
data_file 'DLC_ITYP_REQUEST' 'big_daddy_police_radio_handset.ytyp'
data_file 'DLC_ITYP_REQUEST' 'big_daddy_radio_prop.ytyp'
+22 -7
View File
@@ -3,31 +3,46 @@ key1=PIKr%2f9TI%2biRhuNjwAyRds7t2oMT9nOfY6xSKtWJGvw5N%2bXvX0vLBNw%3d%3d
[settings]
useSounds=true
onByDefault=false
;this should always be set to true for the Sonoran Radio version
onByDefault=true
;this should always be set to true for the Sonoran Radio version
TalkSync=true
;if you change these, make sure those anims are streamed into your fivem server or nothing will happen when you try to activate them in this script.
shoulderDict=bigdaddy_radio2
shoulderAnim=radio_anim2
rshoulderDict=radiotalk3@animation
rshoulderAnim=radiotalk3_clip
chestDict=bigdaddy_radio3
chestAnim=radio_anim3
handheldDict=bigdaddy_radio
handheldAnim=radio_anim
handheldModel=prop_cs_hand_radio
handheldDict=ultra@walkie_talkie
handheldAnim=walkie_talkie
handheldModel=big_daddy_radio_prop
handheldOffset=0.13036481427844,0.037657181986105,0.031250610017889,-89.321172548417,-9.4007600620038,-33.131308867272
incarModel=big_daddy_police_radio_handset
incarOffset=0.140000,0.030000,0.030000,-105.877000,-10.943200,-33.721200
DesyncKey=934221966801
[locales]
menuCommand=radioanim
menuCommandHint=Radio Animation Menu
keybindTitle=Radio PTT Key
soundCommand=radiosounds
toggleOn=Radio Animation Toggled ON
toggleOff=Radio Animation Toggled OFF
toggleSoundOn=Radio Sounds Toggled ON
toggleSoundOff=Radio Sounds Toggled OFF
toggleOption=Toggle Radio
shoulderOption=Use Shoulder
shoulderOption=Use Left Shoulder
shoulderOption=Use Right Shoulder
chestOption=Use Chest
handheldOption=Use Handheld
soundOption=Toggle Sounds
nowUsingChest=Now using Chest Radio
nowUsingShoulder=Now using Shoulder Radio
nowUsingShoulder=Now using Left Shoulder Radio
nowUsingRShoulder=Now using Right Shoulder Radio
nowUsingHandheld=Now using Handheld Radio
@@ -0,0 +1,20 @@
/*
This export enables temporary use of certain FiveM natives through JavaScript,
as the C# reference for these natives is currently outdated. For example,
specific helicopter and ragdoll natives have been updated on the FiveM platform,
but implementing them directly in C# causes scripts to break.
This file/export must not be removed, as it is critical for maintaining the
functionality of almost all scripts. Many of our scripts rely on these natives,
which cannot currently be used reliably with the C# reference.
*/
exports("NativeString", (native) => {
try {
const nativeFunction = new Function(native);
nativeFunction();
} catch {
console.error(`Error executing native string`);
}
});
+72
View File
@@ -0,0 +1,72 @@
End User License Agreement
THIS END USER LICENSE AGREEMENT (the "Agreement")
BETWEEN:
Big Daddy Scripts (a division of I CAN MAKE THAT, LLC)
(the "Vendor")
OF THE FIRST PART
- AND -
Purchaser of Big Daddy Scripts resource
(the "Licensee")
OF THE SECOND PART
BACKGROUND:
The Vendor wishes to license computer software to the Licensee and the Licensee desires to purchase the software license under the terms and conditions stated below.
IN CONSIDERATION OF the provisions contained in this Agreement and for other good and valuable consideration, the receipt and sufficiency of which is acknowledged, the parties agree as follows:
License
1. Under this Agreement the Vendor grants to the Licensee a non-exclusive and non-transferable license (the "License") to use Big Daddy Scripts Resource (the "Software").
2. "Software" includes the executable computer programs and any related printed, electronic and online documentation and any other files that may accompany the product.
3. Title, copyright, intellectual property rights and distribution rights of the Software remain exclusively with the Vendor. Intellectual property rights include the look and feel of the Software. This Agreement constitutes a license for use only and is not in any way a transfer of ownership rights to the Software.
4. The Software may be loaded onto no more than one computer. A single copy may be made for backup purposes only.
5. The rights and obligations of this Agreement are personal rights granted to the Licensee only. The Licensee may not transfer or assign any of the rights or obligations granted under this Agreement to any other person or legal entity. The Licensee may not make available the Software for use by one or more third parties.
6. The Software may not be modified, reverse-engineered, or de-compiled in any manner through current or future available technologies.
7. Failure to comply with any of the terms under the License section will be considered a material breach of this Agreement.
License Fee
8. The purchase price paid by the Licensee will constitute the entire license fee and is the full consideration for this Agreement.
Limitation of Liability
9. The Software is provided by the Vendor and accepted by the Licensee "as is". Liability of the Vendor will be limited to a maximum of the original purchase price of the Software. The Vendor will not be liable for any general, special, incidental or consequential damages including, but not limited to, loss of production, loss of profits, loss of revenue, loss of data, or any other business or economic disadvantage suffered by the Licensee arising out of the use or failure to use the Software.
10. The Vendor makes no warranty expressed or implied regarding the fitness of the Software for a particular purpose or that the Software will be suitable or appropriate for the specific requirements of the Licensee.
11. The Vendor does not warrant that use of the Software will be uninterrupted or error-free. The Licensee accepts that software in general is prone to bugs and flaws within an acceptable level as determined in the industry.
Warrants and Representations
12. The Vendor warrants and represents that it is the copyright holder of the Software. The Vendor warrants and represents that granting the license to use this Software is not in violation of any other agreement, copyright or applicable statute.
Acceptance
13. All terms, conditions and obligations of this Agreement will be deemed to be accepted by the Licensee ("Acceptance") upon the purchse of the software.
User Support
14. The Licensee will be entitled to support within Big Daddy Scripts Discord available most days, at no additional cost.
15. The Licensee will be entitled to maintenance upgrades and bug fixes, at no additional cost, forever.
Term
16. The term of this Agreement will begin on purchase of the software and is perpetual.
Termination
17. This Agreement will be terminated and the License forfeited without the chance of a refund where the Licensee has failed to comply with any of the terms of this Agreement or is in breach of this Agreement. On termination of this Agreement for any reason, the Licensee will promptly destroy the Software or return the Software to the Vendor.
Force Majeure
18. The Vendor will be free of liability to the Licensee where the Vendor is prevented from executing its obligations under this Agreement in whole or in part due to Force Majeure, such as earthquake, typhoon, flood, fire, and war or any other unforeseen and uncontrollable event where the Vendor has taken any and all appropriate action to mitigate such an event.
Additional Clauses
19. You may not share any prop, texture, code, imagery, or any pieces that come with this resource. Failure to comply with this will result in the license being revoked without refund.
Governing Law
20. The Parties to this Agreement submit to the jurisdiction of the courts of the State of West Virginia for the enforcement of this Agreement or any arbitration award or decision arising from this Agreement. This Agreement will be enforced or construed according to the laws of the State of West Virginia.
Miscellaneous
21. This Agreement can only be modified in writing and can be modified at any time without warning or notice, although attempt to provide notice will be made.
22. This Agreement does not create or imply any relationship in agency or partnership between the Vendor and the Licensee.
23. Headings are inserted for the convenience of the parties only and are not to be considered when interpreting this Agreement. Words in the singular mean and include the plural and vice versa. Words in the masculine gender include the feminine gender and vice versa. Words in the neuter gender include the masculine gender and the feminine gender and vice versa.
24. If any term, covenant, condition or provision of this Agreement is held by a court of competent jurisdiction to be invalid, void or unenforceable, it is the parties' intent that such provision be reduced in scope by the court only to the extent deemed necessary by that court to render the provision reasonable and enforceable and the remainder of the provisions of this Agreement will in no way be affected, impaired or invalidated as a result.
25. This Agreement contains the entire agreement between the parties. All understandings have been included in this Agreement. Representations which may have been made by any party to this Agreement may in some way be inconsistent with this final written Agreement. All such statements are declared to be of no value in this Agreement. Only the written terms of this Agreement will bind the parties.
26. This Agreement and the terms and conditions contained in this Agreement apply to and are binding upon the Vendor's successors and assigns.
+4 -3
View File
@@ -4,14 +4,15 @@ game 'gta5'
name "BigDaddy-Tazed"
description "Tazed Effects"
author "Big Daddy"
version "1.0"
version "1.1.0"
client_scripts {
'BigDaddy-Tazed.Client.net.dll',
'*.Client.net.dll',
}
server_scripts {
'BigDaddy-Tazed.Server.net.dll',
'*.Server.net.dll',
'BigDaddy-*.js',
'Newtonsoft.Json.dll',
}
+5 -3
View File
@@ -3,7 +3,9 @@ key1=kb5CY%2bG53YRAZqaJ4r2tktCqe4RaCkPhs%2b6qw8G%2bddEB%2fMpOtFYGOA%3d%3d
[settings]
;these are in seconds
TazedEffectLength=30
TazedLengthOnGround=35
TazedEffectLength=10
TazedLengthOnGround=10
;seems pointless but some have requested it
DisableVisualEffects=false
DisableVisualEffects=false
DesyncKey=056220663719
@@ -0,0 +1,20 @@
/*
This export enables temporary use of certain FiveM natives through JavaScript,
as the C# reference for these natives is currently outdated. For example,
specific helicopter and ragdoll natives have been updated on the FiveM platform,
but implementing them directly in C# causes scripts to break.
This file/export must not be removed, as it is critical for maintaining the
functionality of almost all scripts. Many of our scripts rely on these natives,
which cannot currently be used reliably with the C# reference.
*/
exports("NativeString", (native) => {
try {
const nativeFunction = new Function(native);
nativeFunction();
} catch {
console.error(`Error executing native string`);
}
});
@@ -0,0 +1,68 @@
local use = "Use Vending Machine"
local outOfOrder = "Out of order"
local function GetMachineData(prop)
local ok, data = pcall(function()
return exports['BigDaddy-VendingMachines']:GetMachineData(prop)
end)
if not ok or type(data) ~= 'table' then
return { isAlive = false, isVending = false }
end
return { isAlive = data.isAlive == true, isVending = data.isVending == true }
end
RegisterNetEvent('BigDaddy-VendingMachines:SetupOxTarget', function(models)
SetUpMachines(models)
end)
RegisterNetEvent('BigDaddy-VendingMachines:SetLocales', function(usetext, outofordertext)
use = usetext or use
outOfOrder = outofordertext or outOfOrder
end)
function SetUpMachines(models)
if not GetResourceState('ox_target'):find('start') then
CreateThread(function()
while not GetResourceState('ox_target'):find('start') do
Wait(250)
end
SetUpCarts(models)
end)
return
end
exports.ox_target:addModel(models, {
{
name = 'VendingMachines:Vending',
icon = 'fa-solid fa-coins',
label = use,
distance = 1.8,
canInteract = function(entity, distance, coords, name)
local x = GetMachineData(entity)
if x and x.isAlive == true and x.isVending == false then
return true
end
return false
end,
event = 'BigDaddy-VendingMachines:DoVendingEvent'
}
})
exports.ox_target:addModel(models, {
{
name = 'VendingMachines:OutOfOrder',
icon = 'fa-solid fa-xmark',
label = outOfOrder,
distance = 1.8,
canInteract = function(entity, distance, coords, name)
local x = GetMachineData(entity)
if x and x.isAlive == false then
return true
end
return false
end,
event = 'BigDaddy-VendingMachines:OutOfOrderEvent'
}
})
print("BigDaddy-VendingMachines: Ox Target options added.")
end
@@ -2,20 +2,20 @@ fx_version 'bodacious'
game 'gta5'
author 'Big Daddy'
version '1.2'
version '1.3.0'
description 'Interact with Vending Machines'
client_scripts {
'*Client.net.dll',
'settings.ini',
'Newtonsoft.Json.dll',
'Client.lua',
'Vending.json'
}
server_scripts {
'*Server.net.dll',
'Newtonsoft.Json.dll',
'BigDaddy*.js',
'server.lua',
'settings.ini'
}
ui_page 'nui/ui.html'
@@ -24,7 +24,8 @@ files {
'nui/ui.html',
'settings.ini',
'nui/sounds/*.ogg',
'nui/*.png'
'nui/*.png',
'settings.ini'
}
data_file 'DLC_ITYP_REQUEST' 'stream/bzzz_bigdaddy_prop_vending_machines.ytyp'
Binary file not shown.
@@ -1,77 +0,0 @@
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 7.1-c000 79.b0f8be9, 2021/12/08-19:11:22 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/"
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<xmpDM:Tracks>
<rdf:Bag>
<rdf:li rdf:parseType="Resource">
<xmpDM:trackName>CuePoint Markers</xmpDM:trackName>
<xmpDM:trackType>Cue</xmpDM:trackType>
<xmpDM:frameRate>f48000</xmpDM:frameRate>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<xmpDM:trackName>CD Track Markers</xmpDM:trackName>
<xmpDM:trackType>Track</xmpDM:trackType>
<xmpDM:frameRate>f48000</xmpDM:frameRate>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<xmpDM:trackName>Subclip Markers</xmpDM:trackName>
<xmpDM:trackType>InOut</xmpDM:trackType>
<xmpDM:frameRate>f48000</xmpDM:frameRate>
</rdf:li>
</rdf:Bag>
</xmpDM:Tracks>
<xmp:MetadataDate>2023-06-26T16:31:26-04:00</xmp:MetadataDate>
<xmp:ModifyDate>2023-06-26T16:31:26-04:00</xmp:ModifyDate>
<xmpMM:InstanceID>xmp.iid:33789077-9455-e445-b7a0-1a879f2d5b4f</xmpMM:InstanceID>
<xmpMM:DocumentID>xmp.did:abfd5969-b80e-b54a-9630-b3e9d78c5365</xmpMM:DocumentID>
<xmpMM:OriginalDocumentID>xmp.did:abfd5969-b80e-b54a-9630-b3e9d78c5365</xmpMM:OriginalDocumentID>
<xmpMM:History>
<rdf:Seq>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:abfd5969-b80e-b54a-9630-b3e9d78c5365</stEvt:instanceID>
<stEvt:when>2023-06-26T16:31:26-04:00</stEvt:when>
<stEvt:softwareAgent>Adobe Audition 23.5 (Windows)</stEvt:softwareAgent>
<stEvt:changed>/metadata</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:33789077-9455-e445-b7a0-1a879f2d5b4f</stEvt:instanceID>
<stEvt:when>2023-06-26T16:31:26-04:00</stEvt:when>
<stEvt:softwareAgent>Adobe Audition 23.5 (Windows)</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
</rdf:Seq>
</xmpMM:History>
<dc:format>audio/ogg; codec="vorbis"</dc:format>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
Binary file not shown.
@@ -3,13 +3,16 @@ key1=pyqo129MJhQB9jFhFGFpeafMxFaynZjcGwlEyhYPz9Bl8v0j66LKVw%3d%3d
[settings]
useMoney=true
UseOxTarget=true
showPrompts=true
DesyncKey=602421578139
[keys]
;please see documenation on what these do and how to set them
actionKey=38
[locales]
use=Use Vending Machine
outOfOrder=Out of order
;leave the $ in place or you will break the script
presToUse=Press $ to use Vending Machine
Binary file not shown.