Jump to content

FuriouZ

Members
  • Posts

    459
  • Joined

  • Last visited

Everything posted by FuriouZ

  1. If just any body need add me skype and i will give him prove. Well, if thoose arent leaked/stolen scripts, then show some screenshots.
  2. Yes, use ETL https://community.multitheftauto.com/index.php?p= ... ls&id=6778
  3. Hey, i have question how i can reset cameraMatrix ? onPlayerSpawn cameraMatrix is reseted , i mean then script sets back to default camera .. Thanks
  4. Yes, textures are possible to replace via shaders.
  5. Still don't get it ..
  6. Almost works, but i don't understand how to put it under the car and there's one more problem with camera position Cam position #1 Cam position #2 local Sheild = dxCreateTexture("neons/neon_sheild.png") local gVehicle = getPedOccupiedVehicle(localPlayer) function drawImage() local x,y,z = getElementPosition(gVehicle) dxDrawMaterialLine3D(x,y,z -1,x,y,5,Sheild, 5) end addEventHandler("onClientRender", root, drawImage)
  7. Hello, i have some questions How i can attach image under the vehicle like this ? (THIS IS SHADER) But is it possible to create same thing via dxDrawMaterialLine3D ? Here is code: local Sheild = dxCreateTexture("neons/neon_sheild.png") addEventHandler("onClientRender", root, function() -- x,y,z, targetx,targety,targetz,texture,width,color dxDrawMaterialLine3D (0,0,2,0,0,15,Sheild, 10, tocolor(255,255,255,255)) end) I tryed, but i don't understang how i can add it under the car with correct position
  8. setTimer( function() guiCreateStaticImage(0.19, 0.01, 0.63, 1.00, "img/level/levelUP.png", true) end, 10000, 0) How to destroy this image after 20 seconds ?
  9. Hello I have a an question, what should i use to trigger client/server event from another resource ? I made exp system, but i wan't to give point from other resource
  10. Thanks ! edit: But how to add "$" after money like 1,000 --> 1,000$
  11. Hey How to convert money 1000$ --> 1,000$ 10000$ --> 10,000$ 100000$ --> 100,000$ 1000000$ --> 1,000,000$ I tryed some ways, but didn't work function updatePlayersMoney ( ) for index, player in ipairs ( getElementsByType "player" ) do setElementData ( player, "Money",getPlayerMoney ( player )) --string.gsub(setElementData ( player, "Money",'%1,%2',getPlayerMoney ( player ))) end end setTimer(updatePlayersMoney, 2500, 0) via this function function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end
  12. Hello, i have some questions 1) Why player skin going to be set to CJ if player spawns ? How to remove it, i don't want random skin, i think, it is something with getPedSkin but i cant figure it out spawnPlayer(source, -6.14358, 6.11255, 3.11719) 2) How to disable kill sound,if player gets dead? killPed(source, source) 3) How to mute all sounds including wordld sounds (water waves, wind..) 4) Bad argument @getElementHealth -Line 66 attempt to preform aritmethic on local 'hp' (a boolean value) -Line 67 local gMe = getLocalPlayer() local sX,sY = guiGetScreenSize() local function drawVehicleHealth() if isPedInVehicle(gMe) then dxDrawRectangle(sX-141,689,130,20,tocolor(0,0,0,255)) dxDrawRectangle(sX-140,690,128,18,tocolor(0,0,0,255)) local hp = getElementHealth(getPedOccupiedVehicle(gMe)) --Line 66 dxDrawRectangle(sX-140,690,hp/7.81,18,tocolor(198,30,28,255)) --Line 67 dxDrawRectangle(sX-140,690,hp/7.81,9,tocolor(40,40,40,80)) end end addEventHandler ("onClientRender", getRootElement(), drawVehicleHealth)
  13. Still can't see hud, but anyways .. i did another way Triggered from my lobby window, pretty stupid way, but atleast works fine and no errors. lobby.lua addEventHandler("onClientGUIClick", root, function() if source == FreeroamRoomButton then closeLobby() guiSetEnabled (LobbyRoomButton,true) triggerServerEvent ( "onPlayerFreeroamEnter", gLocalMe ) triggerEvent ( "disableHud", root, source) --Triggered elseif source == DeathmatchRoomButton then closeLobby() guiSetEnabled (LobbyRoomButton,true) triggerServerEvent ( "onPlayerDeathmatchEnter", gLocalMe ) triggerEvent ( "enableHud", root, source) --Triggered c_dm.lua function enableHud() showPlayerHudComponent ( "weapon", true ) showPlayerHudComponent ( "ammo", true ) showPlayerHudComponent ( "radar", false ) end function disableHud() showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ( "ammo", false ) showPlayerHudComponent ( "radar", true ) end addEvent("enableHud", true) addEventHandler ( "enableHud", root, enableHud ) addEvent("disableHud", true) addEventHandler ( "disableHud", root, disableHud )
  14. No errors, but if i enter to the deathmatch team, i still can't see "ammo" and "weapon"
  15. Hey, i asking again what's the problem here.. I still can't figure it out I hope that now i can get a solution, not like last time I want that, if player joins deathmatch team, then he can see weapon and ammo, but radar hides away, and if player leaves from deathmatch then radar is visible and ammo and weapon are hitten .. Server side only : function isDeathmatchTeam () local gTeam = getPlayerTeam (source) local dmTeam = getTeamFromName("Deathmatch Arena") if ( gTeam ) then if ( gTeam == dmTeam ) then showPlayerHudComponent ( source, "ammo", true ) showPlayerHudComponent ( source, "weapon", true ) showPlayerHudComponent ( source, "radar", false ) else showPlayerHudComponent ( source, "ammo", false) showPlayerHudComponent ( source, "weapon", false ) showPlayerHudComponent ( source, "radar", true ) end end end addEventHandler("onResourceStart", getRootElement(), isDeathmatchTeam) --Teams are created in another resource (server-side too,works perfectly and no errors) function createTeams () -- -- Deathmatch = createTeam ("Deathmatch Arena", 255, 255, 255) -- -- end addEventHandler("onResourceStart", resourceRoot, createTeams)
  16. FuriouZ

    Weird thing

    Thanks !, works fine
  17. FuriouZ

    Weird thing

    Thanks AlcatRaz ! and all who helped me , all is fine now I still have one last question, how to do if the clock is 11:04 then it is 11:04 not 11:4
  18. FuriouZ

    Weird thing

    God, clock works fine now, updates itself,but date is wrong sould be 21.12.2013 but it is 21.11.133 lol
  19. FuriouZ

    Weird thing

    Thanks to you all I used mcer's code, thanks all works fine now,but month and year is still wrong [EDIT]: Fixed and deleted code.
  20. FuriouZ

    Weird thing

    Hello, my userpanel have very weird thing... [EDIT]: Fixed and deleted code.
  21. Thanks! , i'll try it EDIT: It worked perfectly, thanks again !
  22. Hey I have problem with triggerClientEvent so, if i press button, then debug line 74 says attempt to call global 'trigerClientEvent' (a nil value) settings: (client) GUIEditor = {} function drawSettingsWind() GUIEditor.window = guiCreateStaticImage(0.08, 0.04, 0.72, 0.94, "img/window.png", true) GUIEditor.closeButton = guiCreateStaticImage(0.94, 0.00, 0.06, 0.09, "img/close.png", true, GUIEditor.window) guiSetVisible(GUIEditor.window, true) guiSetEnabled(GUIEditor.window, true) end --[[ function showSettingsWind () guiSetVisible(GUIEditor.window, true) guiSetEnabled(GUIEditor.window, true) end]] addEvent("showSettings", true) addEventHandler("showSettings", getRootElement(), drawSettingsWind) panel: (client) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.settingsButton then triggerClientEvent ( "showSettings", getLocalPlayer() ) --Line 74 end end ) Merry Christmas and thanks IIYAMA, stay away from this topic.Thanks.
×
×
  • Create New...