
sckatchof
Members-
Posts
394 -
Joined
-
Last visited
Everything posted by sckatchof
-
He didn't put that, you are giving him wrong information. @sckatchof: You must add the resource to the "acl.xml", "Admin" group. thank you snake for help it still dont work
-
and can u help me to fix it ?
-
you said what you put !! and my problem i have bad argument lien 7 8 and 9 this lien addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local ip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end )
-
change this .. .. function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end ) with this function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) getPlayerIP ( getPlayerIP ( playerName ) ) getPlayerIP ( getPlayerIP ( IP ) ) getPlayerSerial ( getPlayerSerial ( serial ) ) getAccountName ( getPlayerAccount ( account ) ) end
-
thank you for help but dont work some problem
-
this all my script : Client side : addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GridListePlayer ) then local col = guiGridListGetSelectedItem ( GridListePlayer ); if ( col and col ~= -1 ) then local playername = guiGridListGetItemText ( GridListePlayer, col, 1 ); triggerServerEvent ( 'triggerData', localPlayer, playername ); end end end ) addEvent ( 'setText', true ); addEventHandler ( 'setText', root, function ( player, ip, serial, account ) guiSetText ( LabelName, "Name : " .. tostring ( player ) .. " " ); guiSetText ( LabelIp, "IP : " ..tostring ( ip ) .." " ); guiSetText ( LabelSerial, "Serial : " ..tostring ( serial ) .." " ); guiSetText ( LabelAccountName, "Account Name : " ..tostring ( account ) .." " ); triggerServerEvent ( 'ListInfo', localPlayer, player, ip, serial, account ); end ) server side : addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end ) addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( playerName ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( player ); local playerSerial = getPlayerSerial ( player ); local accountname = getAccountName ( getPlayerAccount ( player ) ); triggerClientEvent ( source, 'setText', source, playerName, ip, playerSerial, accountname ); end )
-
hi guys i have a probel when i select a player from gridList it show like this Name : Sckatchof Ip : nil Serial : false (sometimes it show) account Name : sckatchof (sometimes it show) bad argument @ line 7 , 8 , 9 part of server side : addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end )
-
if you want a picture in gui use this guiCreateStaticImage @ Draken but he want just the image show not gui i think
-
use this DxDrawImage wiki : https://wiki.multitheftauto.com/wiki/DxDrawImage
-
GanJaRuleZ you have Syntax Error the end line 12 Server side : addCommandHandler("r", fbir) function fbir( thePlayer,_,text ) local text = table.concat( text, " " ) local name = getPlayerName( thePlayer ) local team = getPlayerTeam if ( team == "FBI" ) then local players = getPlayersInTeam ( team ) outputChatBox ("(FBI RADIO) "..name .." says: "..text , players, 0, 0, 205, true) end end
-
try this function fbir( thePlayer,_,text ) local theTeam = getTeamFromName ( teamName ) local text = table.concat( {text}, " " ) local name = getPlayerName( thePlayer ) for players, players in pairs( getPlayersInTeam ( FBI ) ) do outputChatBox ("(FBI RADIO) "..tostring( name ).." says: "..tostring( text ), players, 0, 0, 205, true) end end addCommandHandler("r", fbir)
-
try this server side: addEventHandler ("onMarkerHit", getRootElement(), function( hitPlayer ) if ( source == clubMarker ) then if (getElementType(hitPlayer) == "vehicle") then setElementInterior( hitPlayer, 2, 1204.9, -10.5, 1000.9 ) triggerClientEvent( "onElementClub", hitPlayer ) toggleControl( hitPlayer, "fire", false ) elseif ( source == clubMarker2 ) then setElementInterior( hitPlayer, 0, 2421.5, -1223.9, 25.3 ) triggerClientEvent( "onElementClub", hitPlayer ) toggleControl( hitPlayer, "fire", true ) end end end )
-
thank you snake for help it just col
-
thank you guys for help and this is server side server : addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) -- something with playerName -- something with ip -- something with serial -- something with account end ) addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( row, player ) playerip = getPlayerIP ( player ); playerSerial = getPlayerSerial ( player ); accountname = getAccountName ( getPlayerAccount ( player ) ); triggerClientEvent ( 'setText', source, player, ip, playerSerial, accountname ); end ) and what i put in that lines -- something with playerName -- something with ip -- something with serial -- something with account this ? local thePlayer = getPlayerFromName ( playerName ) local theIp = getPlayerIP ( playerName ) local theSerial = getPlayerSerial( playerName ) local theAccountName = getPlayerSerial( playerName ) and this client addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GridListePlayer ) then local row, col = guiGridListGetSelectedItem ( GridListePlayer ); if ( row and col and row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( GridListePlayer, row, 1 ); triggerServerEvent ( 'triggerData', localPlayer, row, playername ); end end end ) addEvent ( 'setText', true ); addEventHandler ( 'setText', root, function ( player, ip, serial, account ) guiSetText ( LabelName, "Name : " .. tostring(player) .. " " ); guiSetText ( LabelIp, "IP : " ..tostring(ip) .." " ); guiSetText ( LabelSerial, "Serial : " ..tostring(serial) .." " ); guiSetText ( LabelAccountName, "Account Name : " ..tostring(account) .." " ); triggerServerEvent ( 'ListInfo', localPlayer, player, ip, serial, account ); end )
-
thank you guys for help and how can i check if i select player from gridlist i try to do it but i can't
-
hi guys i have probelm when i select a player from gridlist nothing it show in labels this is my script client side : function info ( ) local row = guiGridListGetSelectedItem ( GridListePlayer ) playername = guiGridListGetItemText ( GridListePlayer, row, 1) playerip = getPlayerIP ( localPlayer ) playerSerial = getPlayerSerial() accountname = getAccountName() guiSetText ( LabelName, "Name : " .. playername .. " " ) guiSetText ( LabelIp, "IP : " ..playerip .." " ) guiSetText ( LabelSerial, "Serial : " ..tostring(playerSerial) .." " ) guiSetText ( LabelAccountName, "Account Name : " ..accountname .." " ) triggerServerEvent ( "ListInfo", localPlayer, playername, playerip, playerSerial, accountname ) end Server Side : addEvent ( "ListInfo", true ) addEventHandler ( "ListInfo", root, function ( playerName ) local thePlayer = getPlayerFromName ( playerName ) local theIp = getPlayerIP ( playerName ) local theSerial = getPlayerSerial( playerName ) local theAccountName = getPlayerSerial( playerName ) end )
-
thank you snake work no this small part
-
Thank you for help but still have some probelm. this script for admin panel.
-
you mean client side : function informations() local rowindex, columnindex = guiGridListGetSelectedItem ( GridListePlayer ) playername = guiGridListGetItemText ( GridListePlayer, rowindex, 1) guiSetText ( LabelName, "Name : " .. playername .. " " ) triggerServerEvent("informations", localPlayer, targetsource, playername) end
-
hi guys i have a small problem WARNIG .... Bad arugement @' getPlayerFromName server side : function listinfo (theAdmin, command, targetsource) local thePlayer = getPlayerFromName(targetsource) end addEvent("informations", true) addEventHandler("informations", getRootElement(), listinfo)
-
when i open gui setElementData ( localPlayer, "oldteam", getTeamName ( localPlayer ) , true )