-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathindex.html
More file actions
918 lines (918 loc) · 35.4 KB
/
index.html
File metadata and controls
918 lines (918 loc) · 35.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
<html>
<head>
<title>Spooner</title>
<script src="https://kit.fontawesome.com/5537a772c3.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="gta5.css">
<link rel="stylesheet" href="rdr3.css">
<script src="script.js"></script>
</head>
<body>
<div id="hud" style="width:25%">
<div id="crosshair" class="inactive">+</div>
<div id="info">
<div id="entity-info"><span id="entity-type"></span>: <span id="entity-id"></span> (<span id="model-name"></span>) <span id="entity-net-id"></span></div>
<div id="spawn-info">Spawn: <span id="spawn-id"></span></div>
<div>Speed: <span id="speed"></span></div>
<div>Mouse Adjust: <span id="adjust-mode"></span> - Speed: <span id="adjust-speed"></span></div>
<div>Rotate: <span id="rotate-mode"></span> - Speed: <span id="rotate-speed"></span></div>
<div id="focus-info" style="display: none">Focus: <span id="focus-target"></span> (<span id="focus-mode"></span>)</div>
<div id="place-on-ground-container">Snap to Ground: <span id="place-on-ground"></span></div>
<div id="controls">
<div id="basic-controls" class="control-set">
<div class="control-and-help">
<div class="control">WASD</div>
<div class="control-help">Move</div>
</div>
<div class="control-and-help">
<div class="control">wg</div>
<div class="control-help">Up/Down</div>
</div>
<div class="control-and-help">
<div class="control">E</div>
<div class="control-help">Spawn</div>
</div>
<div class="control-and-help">
<div class="control">F</div>
<div class="control-help">Spawn Menu</div>
</div>
<div class="control-and-help">
<div class="control">X</div>
<div class="control-help">Database</div>
</div>
<div class="control-and-help">
<div class="control">J</div>
<div class="control-help">Saved DBs</div>
</div>
<div class="control-and-help">
<div class="control">vu</div>
<div>Speed +/-</div>
</div>
<div class="control-and-help">
<div class="control">R</div>
<div class="control-help">Select Speed</div>
</div>
<div class="control-and-help">
<div class="control">c</div>
<div class="control-help">Focus Mode</div>
</div>
<div class="control-and-help">
<div class="control">M</div>
<div class="control-help">Entity Handles</div>
</div>
<div class="control-and-help">
<div class="control">H</div>
<div class="control-help">Help</div>
</div>
<div class="control-and-help">
<div class="control">k</div>
<div class="control-help">Exit</div>
</div>
<div class="control-and-help">
<div class="control">1</div>
<div class="control-help">Hide Controls</div>
</div>
</div>
<div id="entity-controls" class="control-set" style="display: none;">
<div class="control-and-help">
<div>[LMB]</div>
<div class="control-help">Select</div>
</div>
<div class="control-and-help">
<div class="control">QZ</div>
<div class="arrow-keys">
<div>q</div>
<div>r</div>
<div>s</div>
<div>t</div>
</div>
<div class="control-help">Adjust</div>
</div>
<div class="control-and-help">
<div class="control">78I</div>
<div class="control-help">Mouse Mode</div>
</div>
<div class="control-and-help">
<div class="control">U</div>
<div class="control-help">Snap</div>
</div>
<div class="control-and-help">
<div class="control">CV</div>
<div class="control-help">Rotate</div>
</div>
<div class="control-and-help">
<div class="control">B</div>
<div class="control-help">Axis</div>
</div>
<div class="control-and-help">
<div class="control">e</div>
<div class="control-help">Properties</div>
</div>
<div class="control-and-help">
<div class="control">G</div>
<div class="control-help">Clone</div>
</div>
<div class="control-and-help">
<div class="control">b</div>
<div class="control-help">Focus</div>
</div>
<div class="control-and-help">
<div class="control">c</div>
<div class="control-help">Focus Mode</div>
</div>
<div class="control-and-help">
<div>[RMB]</div>
<div class="control-help">Delete</div>
</div>
</div>
</div>
</div>
<div id="cam-cursor-info">
<div id="cam-info">
<div>Camera:</div>
<div>X: <span id="cam-x"></span></div>
<div>Y: <span id="cam-y"></span></div>
<div>Z: <span id="cam-z"></span></div>
<div>Heading: <span id="cam-heading"></span></div>
</div>
<div id="cam-info">
<div>Camera - Rot:</div>
<div>X: <span id="cam-rot-x"></span></div>
<div>Y: <span id="cam-rot-y"></span></div>
<div>Z: <span id="cam-rot-z"></span></div>
</div>
<button id="copy-cam-coord" class="copy-button" style="width: 100%;">
<i class="fas fa-clipboard" aria-hidden="true"></i>
</button>
<div id="cursor-info">
<div>Cursor:</div>
<div>X: <span id="cursor-x"></span></div>
<div>Y: <span id="cursor-y"></span></div>
<div>Z: <span id="cursor-z"></span></div>
</div>
</div>
</div>
<div id="spawn-menu" style="width:25%" class="menu">
<div id="spawn-categories">
<div class="spawn-category">
<button id="spawn-menu-peds">Peds</button>
</div>
<div class="spawn-category">
<button id="spawn-menu-vehicles">Vehicles</button>
</div>
<div class="spawn-category">
<button id="spawn-menu-objects">Objects</button>
</div>
<div class="spawn-category">
<button id="spawn-menu-propsets">Propsets</button>
</div>
<div class="spawn-category">
<button id="spawn-menu-pickups">Pickups</button>
</div>
</div>
<button id="spawn-menu-close">Close</button>
</div>
<div id="ped-menu" style="width:25%" class="menu">
<div id="ped-search" class="search">
<input type="text" id="ped-search-filter" class="search-filter" value="">
<button id="favourite-peds" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="ped-list" class="list"></div>
<button id="ped-spawn-by-name" class="spawn-by-name">Spawn By Name</button>
<button id="ped-menu-close-btn">Back</button>
</div>
<div id="vehicle-menu" style="width:25%" class="menu">
<div id="vehicle-search" class="search">
<input type="text" id="vehicle-search-filter" class="search-filter" value="">
<button id="favourite-vehicles" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="vehicle-list" class="list"></div>
<button id="vehicle-spawn-by-name" class="spawn-by-name">Spawn By Name</button>
<button id="vehicle-menu-close-btn">Back</button>
</div>
<div id="object-menu" style="width:25%" class="menu">
<div id="object-search" class="search">
<input type="text" id="object-search-filter" class="search-filter" value="">
<button id="favourite-objects" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="object-list" class="list"></div>
<button id="object-spawn-by-name" class="spawn-by-name">Spawn By Name</button>
<button id="object-menu-close-btn">Back</button>
</div>
<div id="object-database" style="width:25%" class="menu">
<div id="object-database-stats">
<div class="object-database-stat">All: <span id="object-database-total-entities"></span></div>
<div class="object-database-stat">Net: <span id="object-database-total-networked"></span></div>
<div class="object-database-stat">Ped: <span id="object-database-total-peds"></span></div>
<div class="object-database-stat">Veh: <span id="object-database-total-vehicles"></span></div>
<div class="object-database-stat">Obj: <span id="object-database-total-objects"></span></div>
</div>
<div id="object-database-list" class="list"></div>
<button id="add-to-db-btn">Add to DB</button>
<button id="object-database-delete-all-btn">Delete All</button>
<button id="object-database-close-btn">Close</button>
</div>
<div id="add-to-db-menu" style="width:25%" class="menu">
<div id="add-to-db-options">
<span>Handle:</span>
<input id="custom-entity-handle">
<button id="add-custom-entity-btn">Add</button>
</div>
<button id="add-to-db-menu-close">Back</button>
</div>
<div id="attachment-options-menu" style="width:25%" class="menu">
<button id="attachment-options-detach">Detach</button>
<div id="attach-to-list" class="list"></div>
<div>
<div class="property">
<div class="label">Bone</div>
<div id="attachment-bone-container">
<select class="set-attach" id="attachment-bone-name"></select>
<input class="set-attach" id="attachment-bone-index" type="number" min="0" step="1" value="0">
</div>
</div>
<div class="property">
<div class="label">Position</div>
<div class="labelled-input-group">
<div class="labelled-input">
<div class="input-label">Speed</div>
<input type="number" class="adjust-speed" step="0.01">
</div>
<div class="labelled-input">
<div class="input-label">X</div>
<input type="number" class="set-attach adjust-input" id="attachment-x" step="0.01">
</div>
<div class="labelled-input">
<div class="input-label">Y</div>
<input type="number" class="set-attach adjust-input" id="attachment-y" step="0.01">
</div>
<div class="labelled-input">
<div class="input-label">Z</div>
<input type="number" class="set-attach adjust-input" id="attachment-z" step="0.01">
</div>
<button id="copy-attachment-position" class="copy-button">
<i class="fas fa-clipboard"></i>
</button>
</div>
</div>
<div class="property">
<div class="label">Rotation</div>
<div class="labelled-input-group">
<div class="labelled-input">
<div class="input-label">Speed</div>
<input type="number" class="rotate-speed" step="0.1">
</div>
<div class="labelled-input">
<div class="input-label">Pitch</div>
<input type="number" class="set-attach rotate-input" id="attachment-pitch" step="1.0" min="-359" max="359">
</div>
<div class="labelled-input">
<div class="input-label">Roll</div>
<input type="number" class="set-attach rotate-input" id="attachment-roll" step="1.0" min="-359" max="359">
</div>
<div class="labelled-input">
<div class="input-label">Yaw</div>
<input type="number" class="set-attach rotate-input" id="attachment-yaw" step="1.0" min="-359" max="359">
</div>
<button id="copy-attachment-rotation" class="copy-button">
<i class="fas fa-clipboard"></i>
</button>
</div>
</div>
<div class="attachment-option">
<input type="checkbox" id="attachment-keep-pos">
<span>Keep world position</span>
</div>
<div class="attachment-option">
<input class="set-attach" type="checkbox" id="attachment-use-soft-pinning">
<span>Use soft pinning</span>
</div>
<div class="attachment-option">
<input class="set-attach" type="checkbox" id="attachment-collision" checked>
<span>Collision</span>
</div>
<div class="attachment-option">
<div class="input-label">Vertex</div>
<input class="set-attach" type="number" id="attachment-vertex" min="0" step="1">
</div>
<div class="attachment-option">
<input class="set-attach" type="checkbox" id="attachment-fixed-rot" checked>
<span>Fixed rotation</span>
</div>
</div>
<button id="attachment-options-menu-close">Back</button>
</div>
<div id="properties-menu" style="width:25%" class="menu">
<div id="properties-menu-entity">
<div class="label">Properties for <span id="properties-menu-entity-type"></span></div>
<div class="value" id="properties-menu-entity-id"></div>
</div>
<div id="properties" class="list">
<div class="property" style="display: flex;">
<div class="label">Model</div>
<div class="value" id="properties-model"></div>
<button id="copy-model-name" class="copy-button" style="margin-left: 15px;">
<i class="fas fa-clipboard" aria-hidden="true"></i>
</button>
</div>
<div class="property multiple">
<button id="properties-select">Select</button>
<button id="properties-focus">Focus</button>
</div>
<div class="property">
<button id="properties-add-to-db" class="add-remove-db">Add to DB</button>
<button id="properties-remove-from-db" class="add-remove-db">Remove from DB</button>
</div>
<div class="property">
<button id="properties-freeze">Freeze</button>
<button id="properties-unfreeze">Unfreeze</button>
</div>
<div class="property">
<div class="label">Position</div>
<div class="labelled-input-group">
<div class="labelled-input">
<div class="input-label">Speed</div>
<input type="number" class="adjust-speed" step="0.01">
</div>
<div class="labelled-input">
<div class="input-label">X</div>
<input type="number" class="set-coords adjust-input" id="properties-x" step="0.01">
</div>
<div class="labelled-input">
<div class="input-label">Y</div>
<input type="number" class="set-coords adjust-input" id="properties-y" step="0.01">
</div>
<div class="labelled-input">
<div class="input-label">Z</div>
<input type="number" class="set-coords adjust-input" id="properties-z" step="0.01">
</div>
<button id="copy-position" class="copy-button">
<i class="fas fa-clipboard"></i>
</button>
</div>
</div>
<div class="property multiple">
<button id="properties-place-here">Place Here</button>
<button id="properties-goto">Go To</button>
</div>
<div class="property">
<div class="label">Rotation</div>
<div class="labelled-input-group">
<div class="labelled-input">
<div class="input-label">Speed</div>
<input type="number" class="rotate-speed" step="0.1">
</div>
<div class="labelled-input">
<div class="input-label">Pitch</div>
<input type="number" class="set-rotation rotate-input" id="properties-pitch" min="-359" max="359" step="1">
</div>
<div class="labelled-input">
<div class="input-label">Roll</div>
<input type="number" class="set-rotation rotate-input" id="properties-roll" min="-359" max="359" step="1">
</div>
<div class="labelled-input">
<div class="input-label">Yaw</div>
<input type="number" class="set-rotation rotate-input" id="properties-yaw" min="-359" max="359" step="1">
</div>
<button id="copy-rotation" class="copy-button">
<i class="fas fa-clipboard"></i>
</button>
</div>
</div>
<div class="property">
<button id="properties-reset-rotation">Reset Rotation</button>
</div>
<div class="property">
<div class="label">Health</div>
<input type="number" id="properties-health" min="0" step="1">
</div>
<div class="property multiple">
<button id="properties-invincible-on">Invincibility On</button>
<button id="properties-invincible-off">Invincibility Off</button>
</div>
<div class="property">
<button id="properties-visible">Visibility On</button>
<button id="properties-invisible">Visibility Off</button>
</div>
<div class="property multiple">
<button id="properties-gravity-on">Gravity On</button>
<button id="properties-gravity-off">Gravity Off</button>
</div>
<div class="property">
<button id="properties-collision-on">Collision On</button>
<button id="properties-collision-off">Collision Off</button>
</div>
<div class="property">
<button id="properties-clone">Clone</button>
</div>
<div class="property">
<button id="properties-attach">Attachment Options</button>
</div>
<div class="property ped-property">
<button id="properties-ped-options">Ped Options</button>
</div>
<div class="property vehicle-property">
<button id="properties-vehicle-options">Vehicle Options</button>
</div>
<div class="property object-property">
<button id="properties-lights-options">Light Options</button>
<button id="properties-animation-for-entity">Animtaions For Entity</button>
</div>
<div class="property">
<button id="properties-register-as-networked">Register as Networked</button>
<button id="properties-request-control">Request Control</button>
</div>
<div class="property">
<button id="properties-delete">Delete</button>
</div>
</div>
<button id="properties-menu-close-btn">Close</button>
</div>
<div id="ped-options-menu" style="width:25%" class="menu">
<div id="ped-options" class="list">
<div class="property player-property">
<button id="properties-player-model">Change Model</button>
</div>
<div class="property">
<div class="label">Outfit</div>
<input type="number" id="properties-outfit" min="-1" step="1">
</div>
<div class="property">
<button id="properties-add-to-group">Add to Group</button>
<button id="properties-remove-from-group">Remove from Group</button>
</div>
<div class="property">
<button id="properties-scenario">Scenarios</button>
</div>
<div class="property">
<button id="properties-animation">Animations</button>
</div>
<div class="property">
<button id="properties-clear-ped-tasks">Clear Tasks</button>
</div>
<div class="property">
<button id="properties-clear-ped-tasks-immediately">Clear Tasks Immediately</button>
</div>
<div class="property">
<button id="properties-give-weapon">Give Weapon</button>
</div>
<div class="property">
<button id="properties-remove-all-weapons">Remove All Weapons</button>
</div>
<div class="property">
<button id="properties-set-on-mount">Set On Mount</button>
</div>
<div class="property">
<button id="properties-enter-vehicle">Enter Vehicle</button>
</div>
<div class="property">
<button id="properties-resurrect-ped">Resurrect</button>
</div>
<div class="property multiple">
<button id="properties-ai-on">AI On</button>
<button id="properties-ai-off">AI Off</button>
</div>
<div class="property">
<button id="properties-clean">Clean</button>
</div>
<div class="property">
<button id="properties-knock-off-props">Knock Off Props</button>
</div>
<div class="property">
<button id="properties-walk-style">Walk Style</button>
</div>
<div class="property">
<button id="properties-clone-ped">Clone</button>
</div>
<div class="property">
<button id="properties-clone-to-target">Clone To Target</button>
</div>
<div class="property multiple">
<button id="properties-look-at-entity">Look At</button>
<button id="properties-clear-look-at">Clear Look</button>
</div>
<div class="property">
<button id="properties-go-to-waypoint">Go To Waypoint</button>
</div>
<div class="property">
<button id="properties-go-to-entity">Go To Entity</button>
</div>
<div class="property">
<button id="properties-attack">Attack</button>
</div>
<div class="property local">
<div class="label">Scale (local)</div>
<input type="number" id="properties-scale" min="0.1" max="10.0" step="0.1" value="1.0">
</div>
<div class="property local">
<button id="properties-config-flags">Config Flags</button>
</div>
</div>
<button id="ped-options-menu-close">Back</button>
</div>
<div id="entity-select-menu" style="width:25%" class="menu"></div>
<div id="walk-style-menu" style="width:25%" class="menu">
<div id="walk-style-search" class="search">
<input type="text" id="walk-style-search-filter" class="search-filter" value="">
<button id="favourite-walk-styles" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="walk-style-list" class="list"></div>
<button id="walk-style-menu-close">Back</button>
</div>
<div id="weapon-menu" style="width:25%" class="menu">
<div id="weapon-search" class="search">
<input type="text" id="weapon-search-filter" class="search-filter" value="">
<button id="favourite-weapons" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="weapon-list" class="list"></div>
<button id="weapon-menu-close">Back</button>
</div>
<div id="vehicle-options-menu" style="width:25%" class="menu">
<div id="vehicle-options" class="list">
<div class="property">
<button id="properties-repair-vehicle">Repair Vehicle</button>
</div>
<div class="property">
<button id="properties-get-in">Get Into Vehicle</button>
</div>
<div class="property multiple">
<button id="properties-engine-on">Engine On</button>
<button id="properties-engine-off">Engine Off</button>
</div>
<div class="property multiple">
<button id="properties-vehicle-lights-on">Lights On</button>
<button id="properties-vehicle-lights-off">Lights Off</button>
</div>
</div>
<button id="vehicle-options-menu-close">Back</button>
</div>
<div id="scenario-menu" style="width:25%" class="menu">
<div id="scenario-search" class="search">
<input type="text" id="scenario-search-filter" class="search-filter" value="">
<button id="favourite-scenarios" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="scenario-list" class="list"></div>
<button id="copscenario">Copy Selected Scenario</button>
<button id="scenario-stop">Stop Scenario</button>
<button id="scenario-menu-close">Back</button>
</div>
<div id="save-load-db-menu" style="width:25%" class="menu">
<div id="db-list" class="list"></div>
<div id="load-db-options">
<div>
<input id="load-db-relative" type="checkbox">
<span>Load relative to cursor position</span>
</div>
<div>
<input id="replace-db" type="checkbox">
<span>Replace current DB</span>
</div>
<div>
<input id="store-deleted" type="checkbox">
<span>Save/Load deletions</span>
</div>
</div>
<div id="save-db-options">
<input id="save-db-name" type="text">
<button id="save-db-btn">Save</button>
</div>
<button id="import-export-db-btn">Import/Export</button>
<button id="save-load-db-menu-close-btn">Close</button>
</div>
<div id="import-export-db" style="width:25%">
<div id="import-export-controls">
<select id="import-export-format">
<option value="spooner-db-json">Spooner DB JSON</option>
<option value="map-editor-xml">Map Editor XML</option>
<option value="ymap">Ymap</option>
<option value="propplacer">propplacer JSON</option>
<option value="backup">Spooner Backup</option>
</select>
<input type="text" id="import-url" placeholder="Import from URL">
<button id="import-db">Import</button>
<button id="export-db">Export</button>
</div>
<textarea id="import-export-content" spellcheck="false"></textarea>
<button id="import-export-db-close">Close</button>
</div>
<div id="lights-options-menu" style="width:25%" class="menu">
<div id="lights-options" class="list">
<div class="property">
<div class="label">Intensity (local)</div>
<input type="number" id="properties-lights-intensity" min="0" step="1">
</div>
<div class="property">
<div class="label">Colour (local)</div>
<input type="number" class="lights-colour" id="properties-lights-red" min="0" max="255" step="1">
<input type="number" class="lights-colour" id="properties-lights-green" min="0" max="255" step="1">
<input type="number" class="lights-colour" id="properties-lights-blue" min="0" max="255" step="1">
</div>
<div class="property">
<div class="label">Type (local)</div>
<input type="number" id="properties-lights-type" min="0" max="20" step="1">
</div>
</div>
<button id="lights-options-menu-close">Back</button>
</div>
<div id="animation-menu" style="width:25%" class="menu">
<div id="animation-search" class="search">
<input type="text" id="animation-search-filter" class="search-filter" value="">
<button id="favourite-animations" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="animation-list" class="list"></div>
<div id="animation-settings">
<div class="property">
<button id="copyanim">Copy Selected Anims</button>
<div class="label">Max Search Results (Total Results: <span id="animation-search-total-results"></span>)</div>
<input type="number" id="animation-search-max-results" value="1000" min="1" step="1">
</div>
<div class="property">
<div class="label">Blend In Speed</div>
<input type="number" id="animation-blend-in-speed" value="1.0">
</div>
<div class="property">
<div class="label">Blend Out Speed</div>
<input type="number" id="animation-blend-out-speed" value="1.0">
</div>
<div class="property">
<div class="label">Duration</div>
<input type="number" id="animation-duration" value="-1">
</div>
<div class="property">
<div class="label">Flag</div>
<input type="number" id="animation-flag" min="0" value="1">
</div>
<div class="property">
<div class="label">Playback Rate</div>
<input type="number" id="animation-playback-rate" value="0.0">
</div>
</div>
<button id="animation-stop">Stop Animation</button>
<button id="animation-menu-close">Back</button>
</div>
<div id="propset-menu" style="width:25%" class="menu">
<div id="propset-search" class="search">
<input type="text" id="propset-search-filter" class="search-filter" value="">
<button id="favourite-propsets" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="propset-list" class="list"></div>
<button id="propset-spawn-by-name" class="spawn-by-name">Spawn By Name</button>
<button id="propset-menu-close-btn">Back</button>
</div>
<div id="pickup-menu" style="width:25%" class="menu">
<div id="pickup-search" class="search">
<input type="text" id="pickup-search-filter" class="search-filter" value="">
<button id="favourite-pickups" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="pickup-list" class="list"></div>
<button id="pickup-spawn-by-name" class="spawn-by-name">Spawn By Name</button>
<button id="pickup-menu-close-btn">Back</button>
</div>
<div id="player-model-menu" style="width:25%" class="menu">
<div id="player-model-search" class="search">
<input type="text" id="player-model-search-filter" class="search-filter" value="">
<button id="favourite-player-models" class="favourites">
<i class="far fa-star"></i>
</button>
</div>
<div id="player-model-list" class="list"></div>
<button id="player-model-spawn-by-name" class="spawn-by-name">Spawn By Name</button>
<button id="player-model-menu-close-btn">Back</button>
</div>
<div id="config-flags-menu" style="width:25%" class="menu">
<div id="config-flags-list" class="list"></div>
<div class="add-config-flag-container">
<div id="config-flag-label">Set flag:</div>
<input id="config-flag" type="number" min="0" step="1" value="1">
<button id="add-config-flag">
<i class="fas fa-plus"></i>
</button>
</div>
<button id="close-config-flags-menu">Back</button>
</div>
<div id="help-menu" style="width:25%">
<h1>Object Spooner Help</h1>
<div id="help-content">
<h2>Cursor colours</h2>
<table>
<tr>
<td style="color: #fff">+</td>
<td>No entity selected</td>
</tr>
<tr>
<td style="color: #0f0">+</td>
<td>Entity highlighted</td>
</tr>
<tr>
<td style="color: #0ff">+</td>
<td>Entity attached</td>
</tr>
</table>
<h2>Controls</h2>
<table>
<tr>
<td class="control">WASD</td>
<td><strong>Move</strong></td>
</tr>
<tr>
<td class="control">wg</td>
<td><strong>Up</strong>/<strong>Down</strong></td>
</tr>
<tr>
<td class="control">E</td>
<td><strong>Spawn</strong> entity at cursor position</td>
</tr>
<tr>
<td>Left Click</td>
<td>
<ul>
<li>Entity highlighted: <strong>Attach</strong> to cursor</li>
<li>Entity attached to cursor: <strong>Detach</strong> from cursor</li>
</ul>
</td>
</tr>
<tr>
<td>Right Click</td>
<td><strong>Delete</strong> selected entity</td>
</tr>
<tr>
<td class="control">CV</td>
<td><strong>Rotate</strong></td>
</tr>
<tr>
<td class="control">B</td>
<td>Change rotation axis</td>
</tr>
<tr>
<td class="control">QZqrst</td>
<td>Adjust selected entity position</td>
</tr>
<tr>
<td class="control">I</td>
<td>
Cycle between controlled mouse adjustment modes:
<ul>
<li><strong>X</strong>: Moves attached entity on the X axis</li>
<li><strong>Y</strong>: Moves attached entity on the Y axis</li>
<li><strong>Z</strong>: Moves attached entity on the Z axis</li>
<li><strong>Rotate</strong>: Rotates the entity</li>
</ul>
</td>
</tr>
<tr>
<td class="control">U</td>
<td>Toggle whether entities stick to the ground in controlled mouse adjustment modes</td>
</tr>
<tr>
<td class="control">7</td>
<td>Turn <strong>Off</strong> mouse adjustment, so the entity can only be moved with C/V/Q/Z/Arrow Keys</td>
</tr>
<tr>
<td class="control">8</td>
<td>Return to <strong>Free</strong> mouse adjustment mode</td>
</tr>
<tr>
<td class="control">G</td>
<td><strong>Clone</strong> selected entity</td>
</tr>
<tr>
<td class="control">b</td>
<td><strong>Focus</strong> on selected entity, attaching the spooner cam to it</td>
</tr>
<tr>
<td class="control">c</td>
<td>
Toggle <strong>Focus Mode</strong>:
<ul>
<li><strong>Fixed</strong>: Camera pivots around the focused entity</li>
<li><strong>Free</strong>: Camera can be rotated freely</li>
</ul>
</td>
</tr>
<tr>
<td class="control">M</td>
<td>Toggle <strong>entity handles</strong></td>
</tr>
<tr>
<td><span class="control">vu</span> Mouse wheel</td>
<td>Increase/Decrease currently selected <strong>speed</strong></td>
</tr>
<tr>
<td class="control">R</td>
<td>Cycle between which speed to adjust</td>
</tr>
<tr>
<td class="control">F</td>
<td>Open the <strong>Spawn</strong> menu</td>
</tr>
<tr>
<td class="control">X</td>
<td>Open the <strong>Database</strong> menu</td>
</tr>
<tr>
<td class="control">e</td>
<td>Open the <strong>Properties</strong> menu for the selected entity</td>
</tr>
<tr>
<td class="control">J</td>
<td>Open the <strong>Save/Load Database</strong> menu</td>
</tr>
<tr>
<td class="control">k</td>
<td><strong>Exit</strong> Object Spooner</td>
</tr>
</table>
<h2>Menus</h2>
<h3>Spawn menu - <span class="control">F</span></h3>
<p>The <strong>Spawn</strong> menu provides searchable lists to select an entity to spawn. Left-clicking on an entity sets it as your current spawn.</p>
<p>If an entity is not included in the list, you can still spawn it by entering the full model name in the search field and clicking <strong>Spawn By Name</strong>.</p>
<p>Right-clicking an entity in any of the spawn menus will add that entity as a favourite. Clicking the favourites button <i class="fas fa-star"></i> will toggle displaying only your favourited entities.</p>
<h3>Database menu - <span class="control">X</span></h3>
<p>The <strong>Database</strong> menu stores a list of entities. When an entity is spawned, it is automatically added to the current database. Existing entities can be added/removed from the database via the <strong>Properties</strong> menu.</p>
<ul>
<li>Left-click on an entity to open it in the <strong>Properties</strong> menu</li>
<li>Right-click on an entity to delete it</li>
<li>Click <strong>Delete All</strong> to delete all entities in the database</li>
</ul>
<h3>Properties menu - <span class="control">e</span></h3>
<p>The <strong>Properties</strong> menu lists and allows you to edit properties of an entity.</p>
<p>Properties labelled as (local) are not synchronized across the network, so changes to these properties will only be visible to you.</p>
<h3>Save/Load Database menu - <span class="control">J</span></h3>
<p>The <strong>Save/Load Database</strong> menu allows you to store your current database with a name, and then load all the entities from it again later.</p>
<ul>
<li>To save your current database, enter a name in the field and click <strong>Save</strong>.</li>
<li>To load a saved database, left-click on the name of the database.</li>
<li>To delete a saved database, right-click on the name of the database.</li>
<li>To import a database or export the current database, click <strong>Import/Export</strong>.</li>
</ul>
<p>Checking the <strong>Load relative to cursor position</strong> box will spawn the entities in the selected database relative to the current cursor position, rather than exactly where they were originally placed.</p>
<p>Checking the <strong>Replace current DB</strong> box will replace your current database with the loaded database, rather than merging the two.</p>
<p>Checking the <strong>Save/Load deletions</strong> box will save what entities you delete, and delete them again when the database is loaded.</p>
<h3>Import/Export menu</h3>
<p>The <strong>Import/Export</strong> menu allows you to import and export databases in a number of different formats:</p>
<table>
<tr>
<th>Format</th>
<th>Description</th>
<th>Export?</th>
<th>Import?</th>
</tr>
<tr>
<td>Spooner DB JSON</td>
<td>The native format used by the spooner</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Map Editor XML</td>
<td>XML format used by the Lambdarevolution map editor and the objectloader resource</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>Ymap</th>
<td>Native map format used by GTA V/RDR2</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>propplacer JSON</td>
<td>RedEM:RP propplacer JSON database</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>Spooner Backup</td>
<td>Backup of all spooner databases</td>
<td>Yes</td>
<td>Yes</td>
</tr>
</table>
<p>To export, select the desired format and click <strong>Export</strong>. The output will be displayed in the text box, and you can copy it to save it to an external file.</p>
<p>To import, paste the input into the text box, select the appropriate format, and click <strong>Import</strong>. Objects imported will be added to your current database.</p>
<p>Entering a URL of a JSON/XML file in the <strong>Import from URL</strong> field and clicking <strong>Import</strong> allows you to import from external web sources, such as pastebin.com, without needing to copy and paste. Be sure that the URL points to the raw version of the file when using such services.</p>
</div>
<div id="help-menu-controls">
<button id="help-menu-close-btn">Close</button>
</div>
</div>
</body>
</html>