Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. Hello guy i am make a new notification system and i need some tips i want to make it for message it take to move a bit down from previouse can you tell me how to do that thank in adnace
  2. Dimos7

    Give package

    We are not your selve also you didn't read the forum rules we are here to help you with your code not make it if you want a resource go to community site search it and simple download it
  3. We are not your selve also you didn't read the forum rules we are here to help you with your code not make it if you want a resource go to community site search it and simple download it
  4. We can't help you with leaked scripts sorry but you can try script one by yourself and if you need help we will help you wiki is your friend
  5. As understand is a costum login that register your account to mysql right? Or you use mta functions too?
  6. We here to help you with your code not make it
  7. Dimos7

    Help Me

    First read wiki
  8. Oh yes my bad thanks
  9. First you put it false and second you dont check if true to can el the damage
  10. function fixAllVehicles (thePlayer) if isPlayerOnGroup(thePlayer) then for _,veh in ipairs(getElementsByType("vehicle")) do if ( veh ) then fixVehicle(veh) end end outputChatBox("The Admin "..getPlayerName(thePlayer).." fixed all the vehicles!",getRootElement(),0,255,0) else outputChatBox("You don't have access to this command!",source,255,0,0) end end addCommandHandler("fixall",fixAllVehicles)
  11. Dimos7

    Please help

    local name = getPlayerName(localPlayer) local r, g, b = getPlayerNametagColor(localPlayer) dxDrawText(""..name.." text", screenW * 0.2291, screenH * 0.1966, screenW * 0.7716, screenH * 0.2552, tocolor(r , g , b , 255), 1.50, "bankgothic", "left", "top", false, false, false, false, false)
  12. We are here to help you with your code not make it if you want a resource look at resource section or community site
  13. Dimos7

    ID System

    ids={} function joiner(plr) for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i) break end end end addEventHandler("onPlayerJoin",root,joiner) function id() for k, v in ipairs(getElementsByType("player")) do local MyID = getElementData(v,"id") if true then setPlayerName(v," ["..MyID.."]"..getPlayerName(v)) end end end end addEventHandler("onPlayerJoin",root,id)
  14. function createText(thePlayer, command,...) local message = table.concat({...}, "") if message ~= "" then triggerClientEvent("CreateTipBox", root, message) else return outputChatBox("Synat:/ "..command.." text", thePlayer, 255, 0, 0) end end addCommandHandler("", createText) -- "" put the command you wanτ Last i give up if that not work
  15. function createText(thePlayer, command,...) local message = table.concat({...}, "") if message ~= "" then triggerClientEvent("createBox", root, "info" , message) else return outputChatBox("Synat:/ "..command.." text", thePlayer, 255, 0, 0) end end addCommandHandler("", createText) -- "" put the command you wanτ Try that
  16. Is that same resource with notification?
  17. addEventHandler("onPlayerLogin", root, function() acc = getPlayerAccount(source) accName = getAccountName(acc) if isObjectInACLGroup("user."..accName,aclGetGroup("admin")) then setElementPosition(source, 1040.21, 1037.02, 11) end end)
  18. you need a costume even server side pass it to client or can save it as element data and save it to a mysql witch is server side
  19. function createText(thePlayer, command,...) local message = table.concat({...}, "") if message ~= "" then triggerEvent("createBox", root, "info" , message) else return outputChatBox("Synat:/ "..command.." text", thePlayer, 255, 0, 0) end end addCommandHandler("", createText) -- "" put the command you wanτ Try that
  20. function createText(thePlayer, command,...) local message = table.concat({...}, "") if message ~= "" then triggerEvent("onNotificationWindowShow", root, message) else return outputChatBox("Synat:/ "..command.." text", thePlayer, 255, 0, 0) end end addCommandHandler("", createText) -- "" put the command you want
  21. function createText(thePlayer, command,...) local message = table.concat({...}, "") if message ~= "" then triggerEvent("createBox", message) else return outputChatBox("Synat:/ "..command.." text", thePlayer, 255, 0, 0) end end addCommandHandler("", createText) -- "" put the command you want
  22. addEventHandler("onResourceStart", resourceRoot, function() for _, v in ipairs(getElementsByType("player")) do bindKey(v, "j" , "down" , ADMINCHAT) -- change j with key you want end end) addEventHandler("onPlayerJoin", root, function () bindKey(source,"j" , "down", ADMINCHAT) -- change j with key you want end)
  23. addEventHandler("onResourceStart", resourceRoot, function() for _, v in ipairs(getElementsByType("player")) do bindKey(v, "down" , ADMINCHAT) end end) addEventHandler("onPlayerJoin", root, function () bindKey(source, "down", ADMINCHAT) end)
  24. It has the heatseak that function if you read wiki
×
×
  • Create New...