Skip to content

Commit

Permalink
[Update] refactor / bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick2562 committed Sep 28, 2024
1 parent 53cc50b commit 69e98e7
Show file tree
Hide file tree
Showing 10 changed files with 554 additions and 432 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
releases/*
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ addCommandHandler("testattach", function(player)
local backpack = createObject(371, 0, 0, 0)
exports.pAttach:attach(backpack, player, "backpack", 0, -0.15, 0, 0, 90, 0)

local weaponRight = createObject(3965, 0, 0, 0)
local weaponRight = createObject(356, 0, 0, 0)
exports.pAttach:attach(weaponRight, player, "weapon")

local weaponLeft = createObject(3965, 0, 0, 0)
local weaponLeft = createObject(356, 0, 0, 0)
exports.pAttach:attach(weaponLeft, player, 34, 0.02, 0.05, 0, 20, 190, 190)

local hat = createObject(1265, 0, 0, 0)
Expand Down
92 changes: 92 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
--[[ _ _ _
/\ | | | | | |
_ __ / \ | |_ | |_ __ _ ___ | |__
| '_ \ / /\ \ | __|| __|/ _` | / __|| '_ \
| |_) |/ ____ \| |_ | |_| (_| || (__ | | | |
| .__//_/ \_\\__| \__|\__,_| \___||_| |_|
| |
|_|
-- https://github.com/Patrick2562/mtasa-pAttach
-- https://mtasa.com/discord
]]


-- SETTINGS - You can modify these variables ----------------------------------------------------------
UPDATE = true -- change this to 'false' if you don't want to check for new releases!

-- default options
OPTIONS = {
toggleCollisions = true, -- change this to 'false' if you want to manage collisions by yourself
dimensionChanges = true, -- change this to 'false' if you want to manage dimension changes by yourself
interiorChanges = true -- change this to 'false' if you want to manage interior changes by yourself
}
-------------------------------------------------------------------------------------------------------


-- AVAILABLE BONE IDS
boneIDs = {
[1] = true,
[2] = true,
[3] = true,
[4] = true,
[5] = true,
[6] = true,
[7] = true,
[8] = true,
[21] = true,
[22] = true,
[23] = true,
[24] = true,
[25] = true,
[26] = true,
[31] = true,
[32] = true,
[33] = true,
[34] = true,
[35] = true,
[36] = true,
[41] = true,
[42] = true,
[43] = true,
[44] = true,
[51] = true,
[52] = true,
[53] = true,
[54] = true,
}

-- AVAILABLE BONE NAMES
boneNames = {
["pelvis"] = 1,
["pelvis2"] = 2,
["spine"] = 3,
["neck"] = 4,
["head"] = 5,
["head2"] = 6,
["head3"] = 7,
["jaw"] = 8,
["right-upper-torso"] = 21,
["right-shoulder"] = 22,
["right-elbow"] = 23,
["right-wrist"] = 24,
["right-hand"] = 25,
["right-thumb"] = 26,
["left-upper-torso"] = 31,
["left-shoulder"] = 32,
["left-elbow"] = 33,
["left-wrist"] = 34,
["left-hand"] = 35,
["left-thumb"] = 36,
["left-hip"] = 41,
["left-knee"] = 42,
["left-tankle"] = 43,
["left-foot"] = 44,
["right-hip"] = 51,
["right-knee"] = 52,
["right-tankle"] = 53,
["right-foot"] = 54,
-- extra
["backpack"] = 3,
["weapon"] = 24,
}
255 changes: 0 additions & 255 deletions exports.lua

This file was deleted.

11 changes: 6 additions & 5 deletions meta.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<meta>
<info author="!Patrick" name="pAttach" type="script" version="1.2.2"/>
<info author="Patrick" name="pAttach" type="script" version="1.2.3" />
<min_mta_version server="1.5.8-9.20957" client="1.5.8-9.20837" />
<oop>true</oop>

<aclrequest>
<right name="function.fetchRemote" access="true"/>
</aclrequest>

<script src="updatecheck.lua" type="server" />
<script src="client.lua" type="client" />
<script src="exports.lua" type="shared" />
<script src="config.lua" type="shared" />
<script src="update.lua" type="server" />
<script src="src/pAttach.lua" type="client" />
<script src="src/client.lua" type="client" />
<script src="src/server.lua" type="server" />

<export function="attach" type="shared" />
<export function="detach" type="shared" />
Expand All @@ -23,7 +25,6 @@
<export function="getDetails" type="shared" />
<export function="setVisible" type="shared" />
<export function="setVisibleAll" type="shared" />
<export function="invisibleAll" type="shared" />
<export function="getAttacheds" type="shared" />
<export function="setConfigOption" type="shared" />
</meta>
Loading

0 comments on commit 69e98e7

Please sign in to comment.