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 ----------------------