-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
ya, use these functions: setVehicleHandling() getVehicleHandling() use the wiki for more information...
-
try this: removeWorldModel ( 1411, 5, 347.20001220703, 1799.1999511719, 18.799999237061)
-
got it: local x,y = guiGetScreenSize() -- Get players resolution. local playerName = getPlayerName (localPlayer) -- Get players name. local theMessage function SetMessageOnRectangle() addEventHandler("onClientRender",root, SetMessageOnRectangle) if(not theMessage) then theMessage = "Visit our forum: #FFFFFFhttp://sa-rc.com/forum/" end dxDrawText ( theMessage, x-x+10, y-20, x-20, y-10, tocolor ( 0, 255, 0, 255 ), 1, "default-bold", "center", "center", false, false, false, true, false) -- Create the text. end addEvent("SendMessageToPlayer", true) addEventHandler("SendMessageToPlayer",root,function(tM) theMessage = tM setTimer(function() removeEventHandler("onClientRender",root,SetMessageOnRectangle) SetMessageOnRectangle() end,7000,1) end) function HandleTheRendering ( ) addEventHandler("onClientRender",root,function() dxDrawRectangle ( x-x, y-30, x, 30, tocolor ( 0, 0, 0, 200 ) ) -- Create our black transparent MOTD background Rectangle. end) -- Keep everything visible with onClientRender. SetMessageOnRectangle() end addEventHandler("onClientResourceStart", resourceRoot, HandleTheRendering) Took me long though
-
I'm not sure if this is solved but, Did you set the element data before? If you didn't, then i suggest setting it before trying that line of code(line 7)
-
@StanleySathler, you changed it to get instead of gui. try this: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} guiSetVisible(GUIEditor_Window[2], false ) GUIEditor_Window[2] = guiCreateWindow(629,219,481,301,"Police Station",false) guiWindowSetMovable(GUIEditor_Window[2],false) GUIEditor_Label[1] = guiCreateLabel(158,172,166,16,"Move To Police Station ?",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(18,199,205,93,"Yes",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(297,201,175,91,"Exit",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(69,24,338,136,"images/mtalogo.png",false,GUIEditor_Window[2]) Marker = createMarker(1119,1034,10,"cylinder",2,0,255,0) addEventHandler('onClientMarkerHit', Marker,function(hit) if ( hit == localPlayer ) then guiSetVisible(GUIEditor_Window[2], true ) showCursor(true) elseif (hit == GUIEditor_Button[1] ) then toggleAllControls( hit, true ) setElementInterior( hit, 6 ) setElementPosition( hit, 264.74969, 77.49036, 1001.03906 ) elseif(hit == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[2], false ) showCursor(false) toggleAllControls( hit, false ) end end)
-
for i=1,100000 do removeWorldModel(i,10000,0,0,0) end And most of the world disappeared. Am I on the right track with that? yes, and try this: for i=0,100000 do removeWorldModel(i,99999,0,0,0) end Warning:You can't actually do anything with no models
-
Sorry for bumping your post Town... 1231230, can you post the meta.xml for the resource here using
-
never saw the versions on the wiki page, anyways, nice
-
Sorry for the long wait, did you found the resource in your "resources" folder?
-
I liked the last kill in the first frag, Even thought the last video had some nice kills, Nice Frags ^SAME VIDEOS^
-
Nice, I never thought anyone would make something for 1.4 for now
-
removeWorldModel
-
Look at this: https://wiki.multitheftauto.com/wiki/Ant ... 0.22.2F.3E
-
Here: Scripting>Tutorial>Lua Tutorials, Manuals: viewtopic.php?f=148&t=40809
-
np, BTW can you unban me please
-
nice, and now it works (Speaking for MOJRM-511)
-
Oh, did you add your resource to the ACl.xml for the Admin Group?
-
ok, I was wondering if it's a new function or something
-
Where did this came from?
-
This wont work: http://lua-users.org/wiki/StringLibraryTutorial string.find(THE_STRING,WHAT_TO_LOOK_FOR) then it returns for some reason the number where it start and the end of the character. When you start the resource, do you want everyone with the nametag to be checked or are you just going into the server and seeing if the output works?
-
Type in /debugscript 3 and see if it says anything
-
Sorry, found my error, copy the code again.
-
ok
