Jump to content

selam

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by selam

  1. Hmm, what about meta.xml then?
  2. @HassoN Thanks, so as I see I have to use client to make my peds immortal right?
  3. function PedLoad(ped) ped = createPed ( 36, 1623.5778808594, 576.61004638672, 1.7578125 ) setElementFrozen( ped, true ) end addEventHandler("onResourceStart", getResourceRootElement(), PedLoad) and Meta; <meta> <script src="fish.Lua" type="client"/> </meta> @HassoN @MilWaxQ I changed to client from server, and now the script is not working, I pasted the codes above.
  4. Now the script is not working?
  5. @MilWaxQ Then I have to change it from meta.xml too right?
  6. @MilWaxQ You added "OnClientPedDamage" but my all codes on server side not client.
  7. @HassoN Ok I deleted " " thing from ped in 3.line, its working now thanks! @HassoN Now I added SetElementHealth, and its working, but I want to make him immortal, how? Max hp is 100.
  8. function pedLoad(ped) ped = createPed ( 36, 1623.5778808594, 576.61004638672, 1.7578125 ) setElementFrozen( "ped", true ) end addEventHandler("onResourceStart", getResourceRootElement(), pedLoad) Not working
  9. Balikci means fisher in turkish, I used "ped" now in both places, but doesnt work, ped is still getting back when I hit him
  10. I am trying to use this now but when I add that code, ped is getting lost.( ped script not working when I add elementfroozen) @HassoN Ok now I fixed the getting lost problem, but now the problem is ped still going back when I hit him, code; function pedLoad(balikci) createPed ( 36, 1623.5778808594, 576.61004638672, 1.7578125 ) setElementFrozen( "balikci", true ) end addEventHandler("onResourceStart", getResourceRootElement(), pedLoad)
  11. I solved the problem, it was because of meta.xml. But I have another question. How can I get ped stuck? When I hit him he is moving back
  12. I did write this but still same, cannot see the ped. By the way, to repeat, I selected "server" in meta.xml is this why?
  13. Hello, I added a ped but it doesnt seems! Please help me out. My meta.xml codes; <info author="Admin" type="script" name="balik" description="balikcilik"/> <script src="fish.Lua" type="server"/> and Lua code; function pedLoad ( name ) createPed ( 36, 1623.5778808594, 576.61004638672, 1.7578125 ) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad )
×
×
  • Create New...