Jump to content

مساعدة


Recommended Posts

شباب بدي لما ادخل على الماركر تفتح اللوحة

إيش المشكل؟؟

-- client side
addEvent("triggerPanel",true)
addEventHandler("triggerPanel",resourceRoot,
function ()
local screenW, screenH = guiGetScreenSize()
mywindow = guiCreateWindow((screenW - 379) / 2, (screenH - 147) / 2, 379, 147, "Panel", false)
guiWindowSetSizable(mywindow, false)
										مش مهم
    								مش مهم
    							مش مهم
end
)
-- server side
gatesmarker = createMarker ( 369.820703125, 162.27880859375, 1024.7890625, "cylinder", 1, 255, 255, 0, 170 )
	function markerhit ()
	    triggerClientEvent ( source, "triggerPanel", getRootElement(), gatemarker )
		end
			addEventHandler("onMarkerHit",gatemarker,markerhit)

 

Link to comment
13 hours ago, AnoirTiza said:

الخطا هنا خليها كذا

function markerhit (player,dim)
if ( getElementType( player ) == 'player' and dim ) then
triggerClientEvent( player , 'triggerPanel' , player)  
end ; end
addEventHandler("onMarkerHit",gatemarker,markerhit)

 

  • Like 1
Link to comment
21 hours ago, AnoirTiza said:

ليش سويت تحقق؟؟

"  ;  " و إيش هذا

لنو سويت ماركر و لما ادخل في الماركر بروح أنتريور ثاني و ظبطت معي بدون ما سويت

if getElementType

getElementType

عشان يتحقق نوع اللي دخل الماركر يمكن يدخل بيد او سيارة وهيشتغل عليهم الكود ويحصل اخطاء لانهم مب لاعبين

20 hours ago, AnoirTiza said:

كودك مو شغال

ايش يظهر بالديبق

Edited by KillerX
Link to comment

Client:

local gasMarker = createMarker ( 369.820703125, 162.27880859375, 1024.7890625, "cylinder", 1, 255, 255, 0, 170 )

addEventHandler ( "onClientMarkerHit", gasMarker,
	function ( _, dimension )
		if ( dimension ) then
			guiSetVisible ( window, true )
			showCursor ( true )
		end
	end
)

 

لا تنسى تستبدل اسم اللوحة بحقتك

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...