Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-06-25, 12:40


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Witam mam problem ze skryptem na mechanika. Ot?? jest marker ale je?li w niego wjad? nic si? nie dzieje.
KOD

local marker createMarker(-2113.1057116.1424134.5,"cylinder"32550255)

function naprawa(thePlayer)
if ( isPedInVehicle thePlayer ) ) then
local theVehicle getPedOccupiedVehicle thePlayer)
setElementFrozen (theVehicletrue)
setTimer(function()
setElementFrozen(theVehiclefalse)
end50001)
local money getPlayerMoney(thePlayer)
if (money 250then 
takePlayerMoney(thePlayer250)
local succes fixVehicle theVehicle )
if ( succes then
outputConsole ("Pojazd naprawiony"thePlayer )
else
outputConsole "Nieudana pr?ba naprawy."thePlayer)
end
else
outputConsole "Musisz by? w poje?dzie!"thePlayer )
end
end
end
addEventHandler("onMarkerHit"markernaprawa)

function fix1(thePlayer)
local accName getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..accNameaclGetGroup "Admin" ) ) then
local theVehicle getPedOccupiedVehicle thePlayer)
local succes fixVehicle theVehicle )
if ( succes then
outputConsole ("Pojazd naprawiony"thePlayer )
end
end
end
addCommandHandler("fix"fix1)

META

<meta>
    <info name="skryptnanaprawe" version="1.0.0" type="script" author="adizygzak" />
    <script src="naprawa.lua" type="client" />
</meta>



ZA POMOC R* I :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-06-25, 12:47


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

Ustaw stron? skryptu na server

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
adisonboss
Wysłany: 2018-06-25, 13:05


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Ok. Dzia?a dzi?ki

Postaw piwo autorowi tego posta
 

 
Tagi: mechanik
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku