Wysłany: 2020-03-24, 15:15
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Witam chc? napisa? skrypt aby po wej?ciu w marker wy?wietla?o si? gui zapisane po client side, lecz mam oto taki b??d, kto? co? pom?g? by?
db3
Server triggered clientside event OnClientRender , but event is not marked as remotly triggerable
c_side
function wchodzenie ()
dxDrawImage ( screenW * 0.3927 , screenH * 0.2787 , screenW * 0.2000 , screenH * 0.3333 , ":Praca-Kopalnia/nowy.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
addEvent ( "onClientRender" , true )
addEventHandler ( "onClientRender" , localPlayer , wchodzenie )
s_side
wejscie_marker = createMarker (- 1885.20 ,- 1636.75 , 21.75 - 1 , "cylinder" , 1.4 , 255 , 199 , 0 , 80 )
addEventHandler ( "onMarkerHit" , wejscie_marker , function( el , md )
if getElementType ( el ) ~= "player" then return end
if isPedInVehicle ( el ) then return end
setTimer (function()
triggerClientEvent ( el , "onClientRender" , el , wchodzenie )
end , 1500 , 1 )
setElementPosition ( el , - 1913.37 , - 1633.68 , - 45.75 )
end )
Wysłany: 2020-03-24, 15:43
MrVip615
witam
Wiek: 22 Na forum: 4307 dni Posty: 167
Nick w MP: ramzes
Piwa : 207
Serwer wywolal event po stronie klienta, ale event nie jest oznaczony jako zdalnie wlaczany(?), cos w ten desen. Wydaje mi sie, ze po prostu nie mozesz striggerowac onClientRender, musisz to zrobic inaczej
Wysłany: 2020-03-24, 15:46
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
onClientRender to istniej? ju? funkcja w MTA, zmie? nazw? na inn? i wsz?dzie indziej r?wnie? pozmieniaj.
Więcej szczegółów
Wystawiono 1 piw(a):Pyrek24
Tagi: rendering :: gui
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: