
[STM]Metalhero
Members-
Posts
70 -
Joined
-
Last visited
Details
-
Gang
eXo
[STM]Metalhero's Achievements

Transformer (11/54)
0
Reputation
-
maybe you can find scripts here https://community.multitheftauto.com/ or if you rly want special scripts post a reply
-
your problem is "createTeam" ist is server function you must learn to choose server and client side
-
guiScrollBarGetScrollPosition value lacks fractional part
[STM]Metalhero replied to DiSaMe's topic in Scripting
1. function createScroll() 2. local scrollbar = guiCreateScrollBar (0.95,0,0.05,1,false,true) 3. guiSetProperty(scrollbar,"StepSize",0.1/19.5) 4. addEventHandler("onClientGUIScroll",scrollbar,onScroll) 5. showCursor(true) 6. end 7. 8. function onScroll() 9. outputChatBox(tostring(guiScrollBarGetScrollPosition(source)*10)) 10. end 11. 12. createScroll() -
you dont need to detect key yust wire funtion with bined keys for example function start () bindKey("accelerate","both",funcw) bindKey("brake_reverse","both",funcb) end addEventHandler( "onClientResourceStart", getRootElement( ),start) function funkw () outputChatBox("You drive with vehicle") end function funkb () outputChatBox("You drive reverse with vehicle") end
-
stupid post have you login with the account or regisertert with [GGR]Jack_Miller
-
i make it for 10 € a mounth
-
it not work pls help me
-
can any help to trigger one hunter rocket hit a object ? thx for all anserwers
-
no but i think i must one part of script in server side and one part of script in client side but i dont work
-
if have map a map cod ebut marker odnt work function resource_says_hai () outputChatBox ( "Metalhero says Have FUN", getRootElement(), 51, 255,255 ) k1 = createObject ( 8838, 3389.5720214844, -1764.0531005859, 28, 0, 0, 0 ) k2 = createObject ( 2898, 3411.4658203125, -1774.7734375, 26.377542495728, 0, 326.25, 0 ) k3 = createObject ( 2898, 3505.853515625, -1739.0093994141, 2.952540397644 ) s1 = createObject ( 2898, 3379.9379882813, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s2 = createObject ( 2898, 3383.9897460938, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s3 = createObject ( 2898, 3388.0126953125, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s4 = createObject ( 2898, 3392.0622558594, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s5 = createObject ( 2898, 3396.0676269531, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s6 = createObject ( 2898, 3400.0974121094, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s7 = createObject ( 2898, 3404.1044921875, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s7 = createObject ( 2898, 3404.1044921875, -1774.4644775391, 29.452541351318, 0, 0, 0 ) m2 = createMarker ( 3595.6535644531, -1826.3543701172, 13, "corona", 1, 255, 255, 0, 255 ) setTimer ( nightmaker, 1000, 0 ) setWeather ( 29 ) setCloudsEnabled ( true ) setSkyGradient( 0, 255, 0, 0, 255, 255 ) setWaterColor( 51, 255 , 255 ) end addEventHandler("onResourceStart", getRootElement(), resource_says_hai ) function nightmaker () setTime ( 0, 0 ) end setTimer(function() destroyElement ( k1 )end,30000,1) m1 = createMarker ( 3415.6726074219, -1790.2113037109, 25.48247718811, "corona", 1, 255, 255, 0, 255 ) setTimer (outputChatBox,5000,1,"O: !!!Touch the light to Open Secret Ways!!! :O", getRootElement(), 255, 0,0 ) function Markery ( hitPlayer, matchingDimension ) if source == m1 then pojazd = getPedOccupiedVehicle ( hitPlayer ) outputChatBox ( "!!!"..pojazd.." Has Open the way!!!", getRootElement(), 51, 255,0 ) moveObject ( s1, 10,3379.9379882813, -1774.4644775391, 30.15, 0, 340, 0 ) moveObject ( s2, 10,3383.9897460938, -1774.4644775391, 31.60, 0, 340, 0 ) moveObject ( s3, 10,3388.0126953125, -1774.4644775391, 33.05, 0, 340, 0 ) moveObject ( s4, 10,3392.0622558594, -1774.4644775391, 34.50, 0, 340, 0 ) moveObject ( s5, 10,3396.0676269531, -1774.4644775391, 35.95, 0, 340, 0 ) moveObject ( s6, 10,3400.0974121094, -1774.4644775391, 37.40, 0, 340, 0 ) moveObject ( s7, 10,3404.1044921875, -1774.4644775391, 38.85, 0, 340, 0 ) destroyElement ( m1 ) end if source == m2 then elseif isPedInVehicle(hitplayer) then local vehicle=getPedOccupiedVehicle(hitplayer) setElementPosition (vehicle , 328.11853027344, -3056.39453125, 635.34979248047 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Markery )
-
i dont check this fuction stand first
-
i dont steal
-
not with server side ok i have try to make waht but i dont work pl shelp SERVER: addEvent "Killer" function blowVehicle(player) end triggerClientEvent(getRootElement(),"onkillTimer") addEventHandler("onMapStarting") CLIENT: afkTime = 3000 function funcInput ( key, keyState ) if ( keyState == "up" ) then if not isTimer(afktimer) then afktimer = setTimer(function() outputChatBox("afk") end,afkTime,1) end else if isTimer( afktimer) then killTimer ( afktimer ) end end end function bindTheKeys () bindKey("fire","both",clientAction) bindKey("next_weapon","both",clientAction) bindKey("previous_weapon","both",clientAction) bindKey("forwards","both",clientAction) bindKey("backwards","both",clientAction) bindKey("left","both",clientAction) bindKey("right","both",clientAction) bindKey("zoom_in","both",clientAction) bindKey("zoom_out","both",clientAction) bindKey("change_camera","both",clientAction) bindKey("jump","both",clientAction) bindKey("sprint","both",clientAction) bindKey("look_behind","both",clientAction) bindKey("crouch","both",clientAction) bindKey("action","both",clientAction) bindKey("walk","both",clientAction) bindKey("aim_weapon","both",clientAction) bindKey("conversation_yes","both",clientAction) bindKey("conversation_no","both",clientAction) bindKey("group_control_forwards","both",clientAction) bindKey("group_control_back","both",clientAction) bindKey("enter_exit","both",clientAction) bindKey("vehicle_fire","both",clientAction) bindKey("vehicle_secondary_fire","both",clientAction) bindKey("vehicle_left","both",clientAction) bindKey("vehicle_right","both",clientAction) bindKey("steer_forward","both",clientAction) bindKey("steer_back","both",clientAction) bindKey("accelerate","both",clientAction) bindKey("brake_reverse","both",clientAction) bindKey("radio_next","both",clientAction) bindKey("radio_previous","both",clientAction) bindKey("radio_user_track_skip","both",clientAction) bindKey("horn","both",clientAction) bindKey("sub_mission","both",clientAction) bindKey("handbrake","both",clientAction) bindKey("vehicle_look_left","both",clientAction) bindKey("vehicle_look_right","both",clientAction) bindKey("vehicle_look_behind","both",clientAction) bindKey("vehicle_mouse_look","both",clientAction) bindKey("special_control_left","both",clientAction) bindKey("special_control_right","both",clientAction) bindKey("special_control_down","both",clientAction) bindKey("special_control_up","both",clientAction) bindKey("enter_passenger","both",clientAction) bindKey("playerlist","both",clientAction) bindKey("screenshot","both",clientAction) bindKey("chatbox","both",clientAction) bindKey("radar","both",clientAction) bindKey("radar_zoom_in","both",clientAction) bindKey("radar_zoom_out","both",clientAction) bindKey("radar_move_north","both",clientAction) bindKey("radar_move_south","both",clientAction) bindKey("radar_move_east","both",clientAction) bindKey("radar_move_west","both",clientAction) bindKey("radar_attach","both",clientAction) end addEventHandler("onClientResourceStart",getRootElement(),bindTheKeys,Killer)