
proracer
Members-
Posts
499 -
Joined
-
Last visited
Everything posted by proracer
-
It should work .. make sure you type team name, example: " /createteam admins " Alternatively, you can make a new team in admin panel.
-
Thanks, Solidsnake14 for this idea! If I would need more people to test my script I would sure try your idea!
-
If you really don't know how to start you can check default resource called "admin" in your "resources" folder and there somewhere should be clientside file which adds maps to the gridlist.
-
Yes there is ... https://wiki.multitheftauto.com/wiki/WarpPedIntoVehicle
-
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) playSound ( 'mysong.mp3' ) -- put the song in your map folder end )
-
Yes .. and there is an similiar example on Wiki: https://wiki.multitheftauto.com/wiki/GetPedBonePosition
-
Try again .. I edited it, sorry for mistake.
-
Try this: -- Serverside function komendavs ( ) local sourcePl = getPlayerFromName ( source ) local veh = getPedOccupiedVehicle ( sourcePl ) setElementPosition ( veh, 0, 0, 0 ) outputChatBox ( getPlayerName ( sourcePl ) ) triggerClientEvent ( "onImie1", sourcePl ) end addCommandHandler ( "vs", komendavs ) -- Clientside function imie1 ( ) dxDrawText ( getPlayerName(getLocalPlayer ( )), dlug/2-dlug/4.8+dlug/11.52,wys/2-wys/3+wys/35,dlug,wys, tocolor ( 255, 255, 255, 255 ), 1.8, "clear" ) end addEvent ( "onImie1", true ) addEventHandler ( "onImie1", root, imie1 )
-
I think it doesn't matter on which line it is placed in meta.xml ...
-
I also fixed that before ... DeadTeamRacing, doesn't DX Scoreboard have that columns as default?
-
Sorry .. I fixed it now.
-
So for example if you have FPS resource which saves element data with string: "FPS" you will do this... addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) exports.scoreboard:scoreboardAddColumn ( "FPS" ) setElementData ( getLocalPlayer ( ), "FPS", 0 ) end ) -- please note that for to add column you must add it's name -- as same as the name when you set player's element data
-
Change line 405 from: addEventHandler('onSettingChange'), g_ResRoot, to: addEventHandler('onSettingChange', g_ResRoot,
-
Use exports.scoreboard:scoreboardAddColumn More info here: https://wiki.multitheftauto.com/wiki/Resource:Dxscoreboard
-
Post the code so we can help you ...
-
Thanks I will test. Btw, I tested that script with tonumber and without and it's still outputting same information...
-
I was trying to create top 5 cash command but I don't know how to return top 5 players cash from element data. For example this function just returns player id and their amount of money. function top5Cash ( ) for i, player in ipairs ( getElementsByType ( "player" ) ) do local getPlayerCash = getElementData ( player, "data.cash" ) outputChatBox ( i ) outputChatBox ( getPlayerCash ) end end addCommandHandler ( "topcash", top5Cash ) So ... how can I return top 5 players with their cash from this element data?
-
It is same with admin panel or creating team ( tested only in freroam)
-
Try this: function onGivePedWeapon ( ped, weaponid, amount ) if ped and weaponid then if amount then giveWeapon ( ped, weaponid, amount ) else outputChatBox ( "Wrong syntax.", source, 255, 0, 0 ) end else outputChatBox ( "Wrong Syntax.", source, 255, 0, 0 ) end end addCommandHandler ( "givepedwp", onGivePedWeapon )
-
[TROYAN] IMPORTANT WARNING ABOUT ~[EPP]~hama2O1o
proracer replied to SHC//Sniper's question in Client
Yep, I saw him in servers too .. what a noob -
Okay, I'm sorry because I never work in these kind of areas (creating peds) as I'm in Race area of scripting.
-
addCommandHandler ("createped", function (player) local x,y,z = getElementPosition (player) ped = createPed (165,x,y,z) giveWeapon(ped, 31, 100) -- it will give ped an M4 with 100 ammo end)
-
Check if your script has any errors and make sure you added it in meta.xml file of your map.
-
As the matter of fact, yes he wanted... look at he's last sentence.