-
Posts
67 -
Joined
-
Last visited
Everything posted by AnDReJ98
-
yes its old version="2.0.0" like this wz = {"1600.0","2200.0","0.1","0.0","0.0","-0.05","70","0.50","0.8","0.70","5","300.0","33.0","16.0","F","P","5.4","0.90","1","45.0","0.95","0.14","0.0","0.80","-0.10","0.5","-0.7","0.00","0.00","19000","0","0","0","3","0"} function setH() local myVeh = getPedOccupiedVehicle(localPlayer) exports["hedit"]:setHandlingFromTable(myVeh,wz) end addCommandHandler("set",setH) but still not work
-
yes its old version="2.0.0"
-
thanks you so much like this this hedit meta.xml "Ingame Handling Editor" version="2.0.0" type="script" author="Remi-X" description="The first, and only ingame handling editor available for San Andreas, made with MTA ofcourse!" /> -- Required Client-Scripts --> and my script server.lua function setH() local myVeh = getPedOccupiedVehicle(localPlayer) exports["hedit"]:setHandlingFromTable(myVeh,'1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0') end addCommandHandler("set",setH) meta.xml but not work why?
-
yes its running this meta.xml "Ingame Handling Editor" version="2.0.0" type="script" author="Remi-X" description="The first, and only ingame handling editor available for San Andreas, made with MTA ofcourse!" /> -- Required Client-Scripts --> this my client function setH() local myVeh = getPedOccupiedVehicle(localPlayer) exports["hedit"]:importHandling(myVeh,'1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0') end addCommandHandler("set",setH) my meta.xml thanks you
-
sory solidsnake14 but still error ERROR:attemt to call nil value ERROR:call : failed to call "hedit:importHandling" [string "?" ] thanks you for help me
-
yes i add this meta.xml in resource hedit and this in my script clint side function setH() local myVeh = getPedOccupiedVehicle(localPlayer) exports["hedit"]:importHandling(myVeh,'1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0') end addCommandHandler("set",setH)
-
ERROR:call : failed to call "hedit:importHandling" [ string "?" ]
-
thanks you solidsnake14 how to call hedit from command to import my handling?
-
yes i start this resource function setH(plr) local myVeh = getPedOccupiedVehicle(plr) call (getResourceFromName("hedit"),"importVehicleHandling",myVeh,'1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0') end addCommandHandler("set",setH) but still get me error EROOR: CALL : Failed to call 'hedit:importVehicleHandling'
-
no its running
-
function setH(plr) local myVeh = getPedOccupiedVehicle(plr) call (getResourceFromName("hedit"),"importVehicleHandling",myVeh,'1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0') end addCommandHandler("set",setH) not work EROOR: CALL : Failed to call 'hedit:importVehicleHandling'
-
hi guys i try to call hedit to imort my handlings this server side wz = {} function set(plr) local myVeh = getPedOccupiedVehicle(plr) call (getResourceFromName("hedit"),"importHandling",myVeh,'1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0') end addCommandHandler("set",set) but in console show me this error EROOR: CALL : Failed to call hedit 'importHandling' please some one help me
-
i know all this setElementModel for one skin like this triggerServerEvent ("skin", getLocalPlayer()) addEvent( "skin", true ) function setSkin () setElementModel ( source, 46 ) end addEventHandler ( "skin", getRootElement(), setSkin ) but setElementModel with all skin when Button go right and lift any help -- Client Side triggerServerEvent ("skin", getLocalPlayer(),getElementModel (getLocalPlayer())) -- Server Side addEvent( "skin", true ) function setSkin (theSkin) if not theSkin then theSkin = math.random(0,100) end setElementModel ( source, theSkin ) end addEventHandler ( "skin", getRootElement(), setSkin ) this work thanks you so much you are the best scripter
-
i know all this setElementModel for one skin like this triggerServerEvent ("skin", getLocalPlayer()) addEvent( "skin", true ) function setSkin () setElementModel ( source, 46 ) end addEventHandler ( "skin", getRootElement(), setSkin ) but setElementModel with all skin when Button go right and lift any help
-
how? please help me thank you Is this very difficult to understand? or you just waiting for ready code? lazy people! shut up if you have any help help me or go out from topic
-
how? please help me thank you
-
Hi Guys There is a problem when I choose the skin For example, I chose ID: 46 and i finshed Other players see my skin CJ skin ID: 0 not my skin only me i can see my skin whats problem here? this client side local localPlayer = getLocalPlayer() left = guiCreateStaticImage(0.07,0.60,0.15,0.30,"images/left.png",true) right = guiCreateStaticImage(0.78,0.60,0.15,0.30,"images/right.png",true) function goRight(player) local newSkin = getElementModel (localPlayer) + 1 while not setElementModel (localPlayer,newSkin) do newSkin = newSkin + 1 end end addEventHandler ( "onClientGUIClick",right,goRight, false ) function goLeft(player) local newSkin = getElementModel (localPlayer) - 1 while not setElementModel (localPlayer,newSkin) do newSkin = newSkin - 1 end end addEventHandler ( "onClientGUIClick",left,goLeft, false )
-
thanks you so much
-
You're welcome.
-
you need like this GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Window[1] = guiCreateWindow(495,274,549,308,"",false) guiSetVisible(GUIEditor_Window[1],false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,29,531,270,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(137,18,182,17,"Welcome To GTA:T Server",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(5,49,288,20,"[*] GO To Gun Shop To Buy Guns!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(5,82,228,17,"[*] Kill Players To Get Some Points !",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,255) guiSetFont(GUIEditor_Label[3],"clear-normal") GUIEditor_Label[4] = guiCreateLabel(6,115,223,16,"[*] Max FPS 50!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(279,222,251,17,"This GameMode Made By Dev-PoinT !",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(345,57,185,138,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(3,154,326,15,"[*] This GameMode is Copy oF Samp Free Kill /RPG",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,100) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Label[7] = guiCreateLabel(5,215,276,22,"[*] Have Fun Play in My Server!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(386,13,131,24,"X",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[8] = guiCreateLabel(4,15,508,21,"This is Rules of The Server Please Read it !",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"clear-normal") GUIEditor_Memo[1] = guiCreateMemo(5,44,522,198,"[*] Dont Ask To Give Admin !\n\n[*] Dont install Weapon.dat\n\n[*] Dont Run any Hack Programs\n\n[*] PlayFair\n\n[*] Special Thx To [H~9] Gang !\n\n[*] This GameMode is Gift For [H~9] [Avira] \n\nHave Fun !",false,GUIEditor_Tab[2]) addEventHandler("onClientGUIClick",GUIEditor_Button[1],function(button) if (button == "left") then destroyElement(GUIEditor_TabPanel[1]) destroyElement(GUIEditor_Window[1]) showCursor(false) end end,false) function onresourceStart () bindKey ("F3", "down", showUserPanel) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () getVisible = guiGetVisible (GUIEditor_Window[1]) if (getVisible == true) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) end if (getVisible == false) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end end
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(188,173,427,273,"",false) GUIEditor_Memo[1] = guiCreateMemo(34,18,366,140,"funnction scriptCreateTank ( commandName ) \n local luckyBugger = getLocalPlayer() -- get the local player \n local x, y, z = getElementPosition ( luckyBugger ) -- retrive the player's position \n createVehicle ( 432, x, y, z + 10 ) -- create te tank 10 units above them \n outputChatBox ( \"You got Tank'd!\", 255, 0, 0) \nend \n addCommandHandle( \"tank\", scriptCreateTank )",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(71,182,266,59,"copy",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",GUIEditor_Button[1], function () setClipboard(tostring(guiGetText(GUIEditor_Memo[1]))) outputChatBox("Data copied.",0,255,0) end, false) -----2----- GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(188,173,427,273,"",false) data = guiCreateMemo(34,18,366,140,"",false,GUIEditor_Window[1]) paste = guiCreateButton(71,182,266,59,"paste",false,GUIEditor_Window[1]) i need make another gui (2) when i click the butoon paste its paste tha data how to make this?
-
serach in wiki https://wiki.multitheftauto.com/wiki/GetVehicleHandling
-
Is it possible to make the button to paste ???
-
thanks it's work's good