| Tematy otagowane jako: karetki |
| 1. Torba R1 Wyciąganie z karetki |
Gdy wyci?gam torbe R1 z karetki to bierze mi j? i odrazu chowa pom?g? by mi kto? z tym z g?ry dzi?kuje. Za pomoc stawiam zimne piwko
Tutaj daje kod:
[code]local torbysamc = {}
addEvent("onTryTakeSAMCItem1",true)
addEventHandler("onTryTakeSAMCItem1",root,function ()
if not getElementData(client,"SAMC:item:r1") then
stworztorbe(client)
setElementData(client,"SAMC:item:r1",true)
toggleControl(client,"sprint", false )
else
usuntorbe(client)
setElementData(client,"SAMC:item:r1",nil)
toggleControl(client,"sprint", true )
end
end)
function stworztorbe(plr)
if not plr then return end
local x,y,z = getElementPosition(plr)
local torba = createObject(323,x,y,z)
torbysamc[plr] = torba
setElementCollisionsEnabled (torba, false)
exports["bone_attach"]:attachElementToBone(torba,plr,12,0.02,0.1,0.3,0,180,0)
setObjectScale(torba,1.0)
end
function usuntorbe(plr)
if not plr then return end
local torba = torbysamc[plr]
if torba then
if isElement(torba) then
if exports["bone_attach"]:isElementAttachedToBone(torba) then exports["bone_attach"]:detachElementFromBone(torba) end
destroyElement(torba)
end
torbysamc[plr] = nil
end
end
addEventHandler ( "onPlayerQuit", root, function()
local torba = torbysamc[source]
if torba then
if isElement(torba) then
if exports["bone_attach"]:isElementAttachedToBone(torba) then export... |
| 2. Potrzebuje karetki |
Siemka to tak jak w temacie Potrzebuje jakies Fajnej karetki do san andreas tylko najlepiej zeby by?a taka oparta na San andreas i pls o linka do niej z g?ry dzk za linka daje |
| 3. Karetki SAMC |
Witajcie potrzebuje pomocy bo mi karetki sie nie respi? pomocy
kod
[lua]
function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then
local handlingTable = getVehicleHandling ( element )
local value = handlingTable[property]
if value then
return value
end
end
return false
end
local asapd_radiowozy = {
{-1640.32, 649.72, -5.52, 359.7, 0.0, 268.8, 597},
{-1640.31, 653.80, -5.52, 359.7, 0.0, 269.4, 597},
--{-1640.31, 653.80, -5.52, 359.7, 0.0, 269.4, 597},
{-1640.34, 657.85, -5.52, 359.7, 0.0, 270.1, 597},
{-1640.35, 661.99, -5.52, 359.7, 0.0, 268.9, 597},
}
local asapd_holowniki = {
{-1640.21, 670.16, -5.37, 358.0, 0.0, 269.7, 525},
{-1640.21, 674.06, -5.36, 358.3, 360.0, 269.9, 525},
{-1640.25, 678.24, -5.37, 358.0, 0.0, 270.4, 525},
{-1640.19, 682.35, -5.36, 358.3, 0.0, 270.5, 525},
{-1640.29, 686.39, -5.36, 358.2, 360.0, 269.4, 525},
}
local sapd_premiery = {
{-1608.37, 693.82, -5.50, 0.0, 0.0, 179.6, 426},
{-1604.17, 693.80, -5.50, 0.0, 0.0, 179.8, 426},
{-1600.09, 693.79, -5.50, 0.0, 0.0, 179.6, 426},
{-1596.05, 693.82, -5.50, 0.0, 0.0, 180.0, 426},
}
local sapd_sultany = {
--{-1596.70, 674.97, -5.61, 0.13, 0.00, 358.53,560},
--{-1600.68, 674.92, -5.61, 0.13, 0.00, 359.72,560},
}
local sapd_radiowozy = {
{-1632.80, 693.77... |
|