-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
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
-
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
-
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
-
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
-
As understand is a costum login that register your account to mysql right? Or you use mta functions too?
-
We here to help you with your code not make it
-
First you put it false and second you dont check if true to can el the damage
-
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)
-
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)
-
We are here to help you with your code not make it if you want a resource look at resource section or community site
-
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)
-
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
-
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
-
Is that same resource with notification?
-
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)
-
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
-
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
-
Any errors or warnings?
-
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
-
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
-
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)
-
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)
-
It has the heatseak that function if you read wiki