-
Posts
43 -
Joined
-
Last visited
Everything posted by Majhol
-
WeaponID = { [30] = true, } --add an event handler for onPlayerWeaponSwitch addEventHandler ( 'onPlayerWeaponSwitch', getRootElement ( ), function ( previousWeaponID, currentWeaponID ) if ( WeaponID[currentWeaponID] ) then toggleControl ( source, 'fire', false ) --disable the fire button else if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "Police" ) ) then toggleControl ( source, 'fire', true ) --enable it end end ) this is what i reached to and I couldn't figure out the setpedweaponslot thingy can u help me?
-
if your talking about admin then I guess its ACL thingy , casue admins aren't considered as an team but an ACL group
-
hi guys i'm wondering how can I make a car gets invisible after being exploded and thanks
-
can someone please re upload the basemode gamemode basemode.zip I already have the areas all I need is basemode gamemode
-
السلام عليكم محتاج مساعدة في هذا المود البسيط لما يدخل الماركر يسوي انميشن يشرب وامبي الشراب يكون في ايده ويكمل مع مع الانمشن ويختفي من يده مو يبقى ممكن مساعدة؟ وهذا الكود local pepsi = createObject( 955, 1463.5, -2206, 12.5, 0, 0, 0 ) local myMarker1 = createMarker( 1463.4791259766, -2207.4919433594, 13.546875, "cylinder", 1, 255, 255, 0, 170 ) local kb_beer = createObject( 1950, 0, 0, 0, 0, 0, 0 ) function MarkerHit1( player, matchingDimension ) takePlayerMoney ( player, tonumber(150) ) setPedAnimation( player, "VENDING", "VEND_Drink_P", -1, true, false, true ) setTimer(function () setPedAnimation ( player, nil, nil) end,1300,1, true) outputChatBox( "لقد استعدت قوتك", player, 255, 0, 0 ) setPedRotation ( player, 0 ) setElementHealth ( player, 100 ) exports [ "bone_attach" ]:attachElementToBone ( kb_beer, player, 12, 0.015, 0.03, 0, 180, 0, 0 ) end setTimer(function () bone_attach ( player, nil, nil) end,1300,1, true) addEventHandler( "onMarkerHit", myMarker1, MarkerHit1 )
-
no what I mean I want to set a timer with it so when he drinks the bottle after 1300 the bottle should be gone not the position of the bottle
-
I guess we are close to the target all I want is him drinking the beer while in the marker and then the bottle should be gone
-
lool look now when I go to the marker he do the animation and nothing in the hand and I got shocked with this bottle in his hand
-
Nope, this is the finale code local pepsi = createObject( 955, 1463.5, -2206, 12.5, 0, 0, 0 ) local myMarker1 = createMarker( 1463.4791259766, -2207.4919433594, 13.546875, "cylinder", 1, 255, 255, 0, 170 ) local kb_beer = createObject( 1950, 0, 0, 0, 0, 0, 0 ) function MarkerHit1( player, matchingDimension ) takePlayerMoney ( player, tonumber(150) ) setPedAnimation( player, "VENDING", "VEND_Drink_P", -1, true, false, true ) setTimer(function () setPedAnimation ( player, nil, nil) end,1300,1, true) outputChatBox( "لقد استعدت قوتك", player, 255, 0, 0 ) setPedRotation ( player, 0 ) setElementHealth ( player, 100 ) exports [ "bone_attach" ]:attachElementToBone(kb_beer,player,24,0,0,0,0,0,0)end addEventHandler( "onMarkerHit", myMarker1, MarkerHit1 )
-
no sorry I made mistake on this I renamed it now to bone_attach
-
local pepsi = createObject( 955, 1463.5, -2206, 12.5, 0, 0, 0 ) local myMarker1 = createMarker( 1463.4791259766, -2207.4919433594, 13.546875, "cylinder", 1, 255, 255, 0, 170 ) local kb_beer = createObject( 1950, 1463.5, -2206, 12.5, 0, 0, 0 ) function MarkerHit1( player, matchingDimension ) takePlayerMoney ( player, tonumber(150) ) setPedAnimation( player, "VENDING", "VEND_Drink_P", -1, true, false, true ) setTimer(function () setPedAnimation ( player, nil, nil) end,1300,1, true) outputChatBox( "لقد استعدت قوتك", player, 255, 0, 0 ) setPedRotation ( player, 0 ) setElementHealth ( player, 100 ) exports [ "VEND_Drink_P" ]:attachElementToBone(kb_beer,player,24,0,0,0,0,0,0)end addEventHandler( "onMarkerHit", myMarker1, MarkerHit1 )
-
this is what I did is it correct?
-
exports [ "VEND_Drink_P" ]:attachElementToBone(kb_beer,player,24,0,0,0,0,0,0)end
-
can u change the number for me and give it to me I swear I have been trying now since 1 hour please help me
-
ya I did change them to 0,0,............ but it is not working
-
doesn't work , can u give me a hint to change to what exactly which number?
-
change them to what?
-
done exports [ "bone_attach" ]:attachElementToBone(kb_beer,player,1463.541015625,-2207.1723632813,13.546875,0,0,0) end sorry I know disturbed you a lot but cause I'm beginner anyway still not working the beer is not showing up in his hand
-
I did it local pepsi = createObject( 955, 1463.5, -2206, 12.5, 0, 0, 0 ) local myMarker1 = createMarker( 1463.4791259766, -2207.4919433594, 13.546875, "cylinder", 1, 255, 255, 0, 170 ) local kb_beer = createObject( 1950, 1463.5, -2206, 12.5, 0, 0, 0 ) function MarkerHit1( player, matchingDimension ) takePlayerMoney ( player, tonumber(150) ) setPedAnimation( player, "VENDING", "VEND_Drink_P", -1, true, false, true ) setTimer(function () setPedAnimation ( player, nil, nil) end,1300,1, true) outputChatBox( "لقد استعدت قوتك", player, 255, 0, 0 ) setPedRotation ( player, 0 ) setElementHealth ( player, 100 ) exports [ "bone_attach" ]:attachElementToBone(kb_beer,player,MarkerHit1,1463.541015625,-2207.1723632813,13.546875,0,0,0) end addEventHandler( "onMarkerHit", myMarker1, MarkerHit1 ) still nothing
