r2x Posted May 1, 2017 Share Posted May 1, 2017 (edited) سلام عليكم كيفكم ان شاء الله بخير عندي كود حق ماركر الي يفتح لوحه يعني اول ما اجي على الماركر يفتح لي الوحه ابيه يكون لي قروب يعني الي داخل القروب تفتح له الوحه بس ويعطيكم العافيه local marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function() guiSetVisible(W1,true) showCursor(true) end ) Edited May 1, 2017 by r2x Link to comment
iMr.WiFi..! Posted May 1, 2017 Share Posted May 1, 2017 if ... getElementData -- Group Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 5 minutes ago, iMr.WiFi..! said: if ... getElementData -- Group لو سمحت ما فهمت ممكن توضح الي اذا سمحت ؟ Link to comment
Ahmed Ly Posted May 1, 2017 Share Posted May 1, 2017 marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function(hitplayer) if ( hitplayer == localPlayer ) and getElementData(hitPlayer, 'Group' ) == 'You Team' then guiSetVisible(W1,true) showCursor(true) end end ) Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 7 minutes ago, Ahmed Ly said: marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function(hitplayer) if ( hitplayer == localPlayer ) and getElementData(hitPlayer, 'Group' ) == 'You Team' then guiSetVisible(W1,true) showCursor(true) end end ) غلط في الصطر السابع Link to comment
iMr.WiFi..! Posted May 1, 2017 Share Posted May 1, 2017 8 minutes ago, r2x said: غلط في الصطر السابع غير You Team الى اسم القروب حقك * Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 (edited) 6 minutes ago, iMr.WiFi..! said: غير You Team الى اسم القروب حقك * مغيرو يعطيني كذا WARNING: j/Tc.lua:27: Bad argument @ 'getElementData'[Expected element at argument 1, got nil] السطر 27هو نفسه سطر 7 Edited May 1, 2017 by r2x Link to comment
iMr.WiFi..! Posted May 1, 2017 Share Posted May 1, 2017 -- Server marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onMarkerHit",marker, function ( EnterP ) if ( getElementType(EnterP) == "player" ) and ( getElementData( EnterP, "Group" ) == "GroupName" ) then triggerClientEvent(EnterP,"Open",EnterP) end end ) -- Client addEvent ( "Open", true ) addEventHandler ( "Open", root, function ( ) guiSetVisible(W1,true) showCursor(true) end ) Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 6 minutes ago, iMr.WiFi..! said: -- Server marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onMarkerHit",marker, function ( EnterP ) if ( getElementType(EnterP) == "player" ) and ( getElementData( EnterP, "Group" ) == "GroupName" ) then triggerClientEvent(EnterP,"Open",EnterP) end end ) -- Client addEvent ( "Open", true ) addEventHandler ( "Open", root, function ( ) guiSetVisible(W1,true) showCursor(true) end ) ERROR: j/Tc.lua:23: attempt to call global 'aaddEvent' (a nil value) 23 = 20 Link to comment
#BrosS Posted May 1, 2017 Share Posted May 1, 2017 17 minutes ago, r2x said: ERROR: j/Tc.lua:23: attempt to call global 'aaddEvent' (a nil value) 23 = 20 ? Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 3 minutes ago, #BrosS said: ? يقلي في غلط في ذا السطر الي هو 20 Link to comment
#BrosS Posted May 1, 2017 Share Posted May 1, 2017 1 minute ago, r2x said: يقلي في غلط في ذا السطر الي هو 20 مافي غلط ويقولك في aaddEvent وينها Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 -- Server marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onMarkerHit",marker, function ( EnterP ) if ( getElementType(EnterP) == "player" ) and ( getElementData( EnterP, "Group" ) == "GroupName" ) then triggerClientEvent(EnterP,"Open",EnterP) end end ) -- Client addEvent ( "Open", true ) addEventHandler ( "Open", root, function ( ) guiSetVisible(W1,true) showCursor(true) end ) موجود هو صح؟ Link to comment
r2x Posted May 1, 2017 Author Share Posted May 1, 2017 3 minutes ago, #BrosS said: اسأل نفسك ولله ما الي على البرمجه كثير فا من بعد اذنك لو تقدر تساعدني محتاج ذا الكود ضروري لو سمحت Link to comment
#DRAGON!FIRE Posted May 1, 2017 Share Posted May 1, 2017 (edited) local marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hElement ) if ( source == marker ) then if ( hElement == localPlayer and not getPedOccupiedVehicle ( hElement ) ) then if ( getElementData ( hElement, "Group" ) == "Your groupname" ) then guiSetVisible ( W1,true ) showCursor ( true ) end end end end ) Edited May 1, 2017 by #ZA7F //= Link to comment
Ahmed Ly Posted May 1, 2017 Share Posted May 1, 2017 جرب marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function(hitplayer) if hitplayer == localPlayer and getElementData(hitplayer, 'Group' ) == 'You Team' then guiSetVisible(W1,true) showCursor(true) end end ) Link to comment
iMr.WiFi..! Posted May 2, 2017 Share Posted May 2, 2017 14 hours ago, r2x said: ولله ما الي على البرمجه كثير فا من بعد اذنك لو تقدر تساعدني محتاج ذا الكود ضروري لو سمحت اطرح السطر !؟ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now