Jump to content

Ricky Phelps

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ricky Phelps's Achievements

Square

Square (6/54)

0

Reputation

  1. This is a help section and guess what? I need help. That's exactly what I did but I didn't realize I had to do in meta.xml for the fx file. Thanks mate.
  2. This is the only part of my gamemode that isn't done. I already finished the rest.
  3. I have no idea how to make fx files or use them. I just got into MTA development 3 days ago.
  4. I love you, it worked. Thanks a ton.
  5. I tried to replace skin 164 (wmyboun) several times with different skin mods but every time I do it, it turns out like this: It looks like the model was replaced but the texture is blank. This is under onClientResourceStart: modelFile = engineLoadDFF("files/wmyboun.dff") engineReplaceModel(modelFile, 164) textureFile = engineLoadTXD("files/wmyboun.txd") engineImportTXD(textureFile, 164) This is in meta.xml: "files/wmyboun.dff" type="client"/> "files/wmyboun.txd" type="client"/> This shows that the files are in the proper directory: Can somebody please help me resolve this issue? Thanks, Ricky Phelps
  6. That didn't help me. I don't understand anything on that page.
  7. How would I go about removing the player's shadow? I read something about using shader functions but I'm not entirely sure how I would use them to remove the player's shadow. Thanks, Ricky Phelps
  8. I only need it done once and it still only executes for one player.
  9. I have a onClientResourceStart hook below in my client script which is supposed to create a GUI when a player joins the server: addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("testgui - " .. getPlayerName(localPlayer)) informationWindow = guiCreateWindow(896, 199, 198, 256, "Additional Information", false) guiWindowSetMovable(informationWindow, false) guiWindowSetSizable(informationWindow, false) informationHiddenHealthLabel = guiCreateLabel(10, 29, 178, 15, "Hidden Health", false, informationWindow) informationHiddenHealthProgress = guiCreateProgressBar(9, 50, 179, 16, false, informationWindow) guiProgressBarSetProgress(informationHiddenHealthProgress, 100) informationSniperChargeLabel = guiCreateLabel(10, 76, 178, 15, "Sniper Charge", false, informationWindow) informationSniperChargeProgress = guiCreateProgressBar(9, 101, 179, 15, false, informationWindow) guiProgressBarSetProgress(informationSniperChargeProgress, 100) informationBooChargeLabel = guiCreateLabel(9, 127, 179, 15, "Boo Charge", false, informationWindow) informationBooChargeProgress = guiCreateProgressBar(9, 152, 179, 15, false, informationWindow) guiProgressBarSetProgress(informationBooChargeProgress, 100) informationSprintLabel = guiCreateLabel(9, 177, 179, 15, "Sprint", false, informationWindow) informationSprintProgress = guiCreateProgressBar(9, 200, 177, 15, false, informationWindow) guiProgressBarSetProgress(informationSprintProgress, 100) informationDefendersLabel = guiCreateLabel(10, 231, 176, 15, "Defenders: 0", false, informationWindow) end ) Me and my friend joined the server and the testgui debug message was only sent to me and the GUI was only created for me. (Ignore the testguiaf and testguibf, those are unrelated) I would appreciate if somebody could help me resolve this problem. Thanks, Ricky Phelps
  10. I have this array at the top of my server script: hiddenSpawn = {1093, -358, 74, 0} and then I have function which is called in my onPlayerJoin hook: function startNewRound() roundStatus = 2 currentHidden = getRandomPlayer() setPlayerTeam(currentHidden, hiddenTeam) for loopIndex, playerID in ipairs(getElementsByType("player")) do if playerID == currentHidden then spawnPlayer(playerID, hiddenSpawn[0], hiddenSpawn[1], hiddenSpawn[2], hiddenSpawn[3], 0) addPedClothes(playerID, "glasses04dark", "glasses04", 15) addPedClothes(playerID, "croupier", "valet", 17) else local randomSpawn = math.random(#defenderSpawns) spawnPlayer(playerID, defenderSpawns[randomSpawn][0], defenderSpawns[randomSpawn][1], defenderSpawns[randomSpawn][2], defenderSpawns[randomSpawn][3], 179) setPlayerTeam(playerID, defenderTeam) end setCameraTarget(playerID) end end When I spawn, I'm getting the following warning: hidden\hidden_server.lua:54: Bad argument @ 'spawnPlayer' Line 54 is: spawnPlayer(playerID, hiddenSpawn[0], hiddenSpawn[1], hiddenSpawn[2], hiddenSpawn[3], 0) When I used outputChatBox on the values, they printed out fine but I got the same warning on outputChatBox. I also tried changing the values to 0 and it worked fine so it's a problem with the variables. I'm new to MTA, coming from another online GTA:SA modification, and I'm stuck on this little problem. I would appreciate it if somebody could guide me through this issue. Thanks, Ricky Phelps
×
×
  • Create New...