Cze?? Dopiero Zaczynam Swoj? Przygod? Z Lua I Nie Wiem Co Robi? ?le. Prosz? Was O Pomoc.
Chcia?bym, Aby Te Dwa Skrypty "O Ile Mo?na Je Tak Nazwa?" Dzia?a?y Jedynie Pod Grup? ACL O Nazwie OWNER, ?eby Zwyk?y Gracz Nie Mia? Do Tego Dost?pu.
Pierwszy Plik .lua
function consoleJetPack (thePlayer, commandName)
if not doesPedHaveJetPack ( thePlayer ) then
local status = givePedJetPack ( thePlayer )
else
if not status then
local status = removePedJetPack ( thePlayer )
if ( not status ) then
end
end
end
end
addCommandHandler("jp", consoleJetPack)
Drugi Plik .lua
addCommandHandler( "gp",function ()
local x,y,z=getElementPosition(localPlayer)
local _,_,a=getElementRotation(localPlayer)
p=string.format("%.2f, %.2f, %.2f",x, y, z)
setClipboard(p)
outputChatBox("Pozycja Gracza: " .. p)
end)