Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. Are you the last person alive?
  2. I tried again and it's working now. I'm sure I did something wrong! Thanks Greets np
  3. Sorry that no one replied to this but, if you can, can you change those to tags please, next, what is this animation class?
  4. Use what StanleySathler posted at the beginning of the manhunt then when it's time to get the seconds , add the same thing again before the output then get the first tick and the last tick and minus both then put: local X = firstTick - secondTick You could use my resource for an example: https://community.multitheftauto.com/index.php?p= ... ls&id=4730
  5. copy your group and acl into notepad then copy the ACL.xml code X-Shadow posted, after add your group and acl.
  6. try this: function OpenRules_Button (button,state) -- there's one more argument before state is defineed if state == "left" then if source == GUIEditor_Button1 or source == GUIEditor_Button3 then guiSetVisible(Regeln_Window, true) guiBringToFront (Regeln_Window) end end end addEventHandler("onClientGUIClick",guiRoot, OpenRules_Button) --defined root as guiRoot I've add a couple of comments for you
  7. try this: local visibleText = {} addEventHandler ( "onClientRender",root,function() local myFont = dxCreateFont("font.otf", 14) for self,_ in pairs(visibleText) do while true do if self.bDestroyed then visibleText[self] = nil break end local l,t,r,b --If we arent using a bounding box if not self.tBoundingBox then --Decide if we use relative or absolute local p_screenX,p_screenY = 1,1 if self.bRelativePosition then p_screenX,p_screenY = g_screenX,g_screenY end local fX,fY = (self.fX)*p_screenX,(self.fY)*p_screenY if self.bHorizontalAlign == "left" then l = fX r = fX + g_screenX elseif self.bHorizontalAlign == "right" then l = fX - g_screenX r = fX else l = fX - g_screenX r = fX + g_screenX end if self.bVerticalAlign == "top" then t = fY b = fY + g_screenY elseif self.bVerticalAlign == "bottom" then t = fY - g_screenY b = fY else t = fY - g_screenY b = fY + g_screenY end elseif type(self.tBoundingBox) == "table" then local b_screenX,b_screenY = 1,1 if self.bRelativeBoundingBox then b_screenX,b_screenY = g_screenX,g_screenY end l,t,r,b = self.tBoundingBox[1],self.tBoundingBox[2],self.tBoundingBox[3],self.tBoundingBox[4] l = l*b_screenX t = t*b_screenY r = r*b_screenX b = b*b_screenY end local type,att1,att2,att3,att4,att5 = self:type() if type == "border" or type == "stroke" then att2 = att2 or 0 att3 = att3 or 0 att4 = att4 or 0 att5 = att5 or self.tColor[4] outlinesize = att1 or 2 outlinesize = math.min(self.fScale,outlinesize) --Make sure the outline size isnt thicker than the size of the label if outlinesize > 0 then for offsetX=-outlinesize,outlinesize,outlinesize do for offsetY=-outlinesize,outlinesize,outlinesize do if not (offsetX == 0 and offsetY == 0) then dxDrawColorText(self.strText, l + offsetX, t + offsetY, r + offsetX, b + offsetY, tocolor(att2, att3, att4, att5), self.fScale, myFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI ) end end end end elseif type == "shadow" then local shadowDist = att1 att2 = att2 or 0 att3 = att3 or 0 att4 = att4 or 0 att5 = att5 or self.tColor[4] string.gsub(self.strText, '#%x%x%x%x%x%x', '') dxDrawColorText(self.strText, l + shadowDist, t + shadowDist, r + shadowDist, b + shadowDist, tocolor(att2, att3, att4, att5), self.fScale, myFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI ) end dxDrawColorText ( self.strText, l, t, r, b, tocolor(unpack(self.tColor)), self.fScale, myFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI ) break end end end ) addEvent ( "updateDisplays", true ) then addEventHandler ( "updateDisplays", getRootElement(),function(self) setmetatable( self, dxText_mt ) --Remove any old ones with the same id for text,_ in pairs(visibleText) do if text.id == self.id then visibleText[text] = nil end end if self.bVisible and not self.bDestroyed then visibleText[self] = true end end) function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) bx, by, color, scale, font = bx or ax, by or ay, color or tocolor(255,255,255,255), scale or 1, font or "default" if alignX then if alignX == "center" then ax = ax + (bx - ax - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font))/2 elseif alignX == "right" then ax = bx - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) end end if alignY then if alignY == "center" then ay = ay + (by - ay - dxGetFontHeight(scale, font))/2 elseif alignY == "bottom" then ay = by - dxGetFontHeight(scale, font) end end local alpha = string.format("%08X", color):sub(1,2) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(getColorFromString("#"..col..alpha)) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(getColorFromString("#"..col..alpha)) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) dxDrawText(cap, ax, ay, ax + dxGetTextWidth(cap, scale, font), by, color, scale, font) end end EDITED it
  8. Ya, it's not possible at all
  9. no, they could be used in both sides, These functions could only be used server-sided: getAccountData setAccountData
  10. Are they in a resource/folder?
  11. Jaysds1

    GUI Help

    You have multiple errors here, Client-side: addEventHanlder('onClientResourceStart', resourceRoot,function() --moved to client-side outputChatBox('Press F6 To Open Your Stats_Mangment !',255,255,0) centerWindow(GUIEditor_Window[1]) --forgot to call if gui is visible guiSetVisible(GUIEditor_Window[1],false) end) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(420,259,582,358,"Stats_Manger By 'Dev-PoinT' v1.0",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,17,564,330,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Reset Mangement",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(11,1,174,107,"images/Controll.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(82,133,124,32,"Dmg",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(86,182,124,34,"Damage",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Button[3] = guiCreateButton(249,133,121,37,"Kills",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[3],"clear-normal") GUIEditor_Button[4] = guiCreateButton(395,136,133,32,"Deaths",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[4],"clear-normal") GUIEditor_Button[5] = guiCreateButton(246,182,130,34,"Money",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Help Mangement",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(9,5,554,297,"\n#1 First tab use for resert your Dmg - Damage Kills- Deaths -Money To [ 0 ] |\n\n#2 Help Mangemnet You Can Put what you want By Make guiSetMemo read only (false) and type what you want then set it to (true).\n\n'Dev-PoinT Development.\n\nThank's",false,GUIEditor_Tab[2]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Tab[3] = guiCreateTab("V.I.P Mangment",GUIEditor_TabPanel[1]) GUIEditor_Button[6] = guiCreateButton(385,259,141,31,"give Money $ 1000",false,GUIEditor_Tab[3]) guiSetFont(GUIEditor_Button[6],"clear-normal") GUIEditor_Image[2] = guiCreateStaticImage(358,183,180,54,"images/Dollars.png",false,GUIEditor_Tab[3]) GUIEditor_Button[7] = guiCreateButton(371,86,153,34,"M4 $ 500",false,GUIEditor_Tab[3]) guiSetFont(GUIEditor_Button[7],"clear-normal") GUIEditor_Image[3] = guiCreateStaticImage(358,13,157,65,"images/7.png",false,GUIEditor_Tab[3]) GUIEditor_Button[8] = guiCreateButton(12,260,137,32,"Greande $ 2500",false,GUIEditor_Tab[3]) guiSetFont(GUIEditor_Button[8],"clear-normal") GUIEditor_Image[4] = guiCreateStaticImage(1,189,159,73,"images/1.png",false,GUIEditor_Tab[3]) GUIEditor_Label[1] = guiCreateLabel(187,17,137,15,"Buy Weapons ",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[1],0,255,255) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Image[5] = guiCreateStaticImage(10,15,146,127,"images/DecentGun.png",false,GUIEditor_Tab[3]) function open() --made the function shorter guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(not isCursorShowing()) end bindKey("F6","down",open) function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end addEventHandler('onClientGUIClick',guiRoot,function(button, state) --the absolute's are not needed as the buttons are on the gui if ( source == GUIEditor_Button[7] ) then triggerServerEvent('giveM',getLocalPlayer()) elseif ( source == GUIEditor_Button[8] ) then triggerServerEvent('giveG',getLocalPlayer()) elseif ( source == GUIEditor_Button[1] ) then setElementData(source, 'Dmg', 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[2] ) then setElementData( source, 'Damage', 0) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[3] ) then setElementData(source, 'Kills', 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[4] ) then setElementData(source,'Deaths', 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[5] ) then setPlayerMoney(source, 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[ 6] ) then givePlayerMoney( source , 100) outputChatBox('successfully Payed !',source,255 , 255, 0) end end,true)-- Forgot to add a boolean for the event (required) Server-side: addEvent('giveM', true) addEventHandler('giveM',root,function() local money = getPlayerMoney(source) if ( money >= 500 ) then takePlayerMoney(source, money) giveWeapon ( source, 31 , 200 ) outputChatBox(getPlayerName(source) .. 'Bought M4') else outputChatBox('You Dont Have Enough Money To Buy This',source, 255, 255, 0 ) end end) addEvent('giveG', true) addEventHandler('giveG',root,function() local money = getPlayerMoney(source) if ( money >= 2500 ) then takePlayerMoney(source, money) giveWeapon ( source, 16 , 5 ) outputChatBox(getPlayerName(source) .. 'Bought Greande') else outputChatBox('You Dont Have Enough Money To Buy This',source, 255, 255, 0 ) end end)
  12. thanks for telling me that, at the time I was working between scripts and was thinking of a person jacking it instead of the admin... thanks anyways
  13. There should be no problem, unless you're using an http download
  14. ok, in that meta.xml, the newscript.lua is suppose to be the script name, example: removedefault.lua ="removedefault.lua" type="server" /> here's the new script: addEventHandler ( "onResourceStart",resourceRoot,function() for i = 550, 20000 do removeWorldModel ( i, 10000, 0, 0, 0 ) end end)
  15. if you canceled the event Client-side it should work: onClientPlayerDamage
  16. try this: if tonumber(recipient) then for i, v in pairs (getElementsByType("player")) do if recipient == getElementData(v,"id") then target = v break end end else target = getPlayerByName (recipient) end
  17. if you're typing in a command then it's automatically a string
  18. I've put all the images in to an album on this site: http://imgur.com/a/1EBXD/embed Just in case the others go offline or get's deleted.
  19. try this: function privateMessage(source,commandName,recipient,...) local origin = { ... } local message = table.concat(origin, "") if (type(recipient) == "string") then target = getPlayerFromName(recipient) --You've used getPlayerByName, it's getPlayerFromName elseif (type(recipient) == "number") then for i, v in pairs (getElementsByType("player")) do -- You've put players, instead of player if recipient == getElementData(v,"id") then target = v break end end end [...immaterial code...] end EDIT: Added Comments
  20. ok, sorry JokeR, You have to either pay a scripter or learn LUA your self... Here's a topic for more lua sites: viewtopic.php?f=148&t=40809
  21. Sorry, you have to add it server-sided, the client side doesn't get effected if you try canceling it.
  22. Jaysds1

    problem

    ok, PM me the ID and Pass for your TeamViewer...
×
×
  • Create New...