Jump to content

ZeaD22

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

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

ZeaD22's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Hello , i wanted to make cars undamagable from the world's objects (when the car jumps and land) i created this addEventHandler("onClientVehicleCollision",getRootElement(),function (theHitElement) if theHitElement == nil then setVehicleDamageProof (source, true) end else setVehicleDamageProof (source, false) ) its not working and i need to know how can i treat parameters with if and what should i use '==' or '=' or whaat ??
  2. https://lh3.googleusercontent.com/EPMhlp8lvCJxhwMtFDhFuk5P6lffE6cZTNxXT0tAef1sx3Gr2b-3xNgsm7YgDfeIjaGS=s164
  3. ik but when i did it client side there was problems i dont remember it so i decided to make server side btw thank you for your help the thing which i cant understand is addEventHandler("onClientResourceStart", resourceRoot, onStart) what is that resourceRoot i cant understand why did you put it and didnt put getResourceRootElement(getThisResource()) and which words i can use and what is the words which i can use here between that () in getPlayerName(localPlayer) The code after i changed somethings (its working correctly now , thanks for help): ---------------------- Made by ZeaD22 ---------------------- function e() outputChatBox("#ff9999--------------------------------------------",0,0,0,true) end function onStart() e() outputChatBox("#ff9999Hello "..getPlayerName(localPlayer).." #ff9999, Merry Christmas :) .",0,0,0,true) outputChatBox(" ",0,0,0,true) outputChatBox("#ff9999To Enable / Disable The Christmas Infernus Skin , Please use the command #ff0000/xmas",0,0,0,true) outputChatBox(" ",0,0,0,true) outputChatBox("#ff9999 Note : This Mode Made By : #286699-DG|#Zea#990000D22",0,0,0,true) e() end addEventHandler("onClientResourceStart", resourceRoot, onStart) local replaced = false function car() if replaced then engineRestoreModel(411) replaced = false e() outputChatBox("#ff9999You have Disabled The Christmas Infernus Skin",0,0,0,true) outputChatBox(" ",0,0,0,true) outputChatBox("#ff9999 Note : This Mode Made By : #286699-DG|#Zea#990000D22",0,0,0,true) e() else infernusTexture = engineLoadTXD("infernus.txd") engineImportTXD(infernusTexture, 411) infernusTexture = engineLoadDFF("infernus.dff", 411) engineReplaceModel(infernusTexture, 411) replaced = true e() outputChatBox("#ff9999Congratulations , You have Enabled The Christmas Infernus Skin",0,0,0,true) outputChatBox(" ",0,0,0,true) outputChatBox("#ff9999 Note : This Mode Made By : #286699-DG|#Zea#990000D22",0,0,0,true) e() end end addCommandHandler("xmas", car) ---------------------- Made by ZeaD22 ----------------------
  4. i made it outputChatBox("#ff9999Hello "..getPlayerName(player).." #ff9999, Merry Christmas :) .",player,0,0,0,true) says WARNING: skin\server.lua:12: Bad argument @ 'getPlayerName' [Expected element at argument 1 , got nil ] and WARNING: skin\server.lua:12: attemp to concatenate a boolean value i got help from wiki and put onPlayerJoin instead of onResourceStart and put source again instead of player and it worked correctly addEventHandler("onPlayerJoin",getRootElement(),function () e() outputChatBox("#ff9999Hello "..getPlayerName(source).." #ff9999, Merry Christmas :) .",player,0,0,0,true) e() outputChatBox("#ff9999To Enable / Disable The Christmas Infernus Skin , Please use the command #ff0000/xmas",player,0,0,0,true) e() outputChatBox("#ff9999 Note : This Mode Made By : #286699-DG|#Zea#990000D22",player,0,0,0,true) e() end )
  5. Hello , i made an infernus skin , and got a code to run it , i added somethings in the code to have good looking but one of newly added isn't working i need help to fix it and i want to make the command /xmas enables and disables the skin the code i got from internet (client): infernusTexture = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( infernusTexture, 411 ) infernusTexture = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( infernusTexture, 411 ) i made server side : ---------------------- Made by ZeaD22 ---------------------- function e () outputChatBox(" ",player,0,0,0,true) end addEventHandler("onResourceStart",getRootElement(),function () e() outputChatBox("#ff9999Hello "..getPlayerName(source).." #ff9999, Merry Christmas :) .",player,0,0,0,true) e() outputChatBox("#ff9999To Enable / Disable The Christmas Infernus Skin , Please use the command #ff0000/xmas",player,0,0,0,true) e() outputChatBox("#ff9999 Note : This Mode Made By : #286699-DG|#Zea#990000D22",player,0,0,0,true) e() end ) addCommandHandler("xmas" , function () e() outputChatBox("#ff9999Congratulations , You have Enabled The Christmas Infernus Skin",player,0,0,0,true) e() outputChatBox("#ff9999 Note : This Mode Made By : #286699-DG|#Zea#990000D22",player,0,0,0,true e() end ) ---------------------- Made by ZeaD22 ---------------------- And the problem is here... it says ERROR: skin\server.lua:12: attemp to concatenate a boolean value (the line which gets player name , when i removed it and made the line like that : outputChatBox("#ff9999Hello #ff9999, Merry Christmas :) .",player,0,0,0,true) the code ran correctly ) and the ask is : can i make the command /xmas enable and disable the skin ? Client side : ---------------------- Made by ZeaD22 ---------------------- function car() infernusTexture = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( infernusTexture, 411 ) infernusTexture = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( infernusTexture, 411 ) end addCommandHandler("xmas",car) ---------------------- Made by ZeaD22 ----------------------
×
×
  • Create New...