Jump to content

Another help needed


Anubhav

Recommended Posts

Posted (edited)

Guyz, its telling me I have triggered a client event and its not added. But I HAVE ADDED.

CLIENT:

  
function createJob(jobName,teamName,pedID,desc,marker,skins) 
addEventHandler("onClientMarkerHit", marker, showJobWindow) 
triggerEvent('showMeWindow', root, jobName, desc, teamName, skins ) 
end 
addEvent("createJob", true) 
addEventHandler("createJob", root, createJob) 
  
  

SERVER:

  
function addJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) 
marker = createMarker(x,y,z,"cylinder") 
ped = createPed(pedID, x,y,z ) 
triggerClientEvent(root,"createJob",root,jobName,teamName,pedID,desc,marker,skins,occupation) 
end 
  

Edited by Guest
Posted

Can you post the full code please ?

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
Why is that needed? So you can leak my script?

Really Leaking your script ? You Don't want help ? / i don't need it i made a lot of scripts and help alot you can Check my posts ..

i want to see this side of script

  
triggerEvent('showMeWindow' ) 

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

where is the window and what is these ?

jobName, desc , teamName , skins ?

what are you trying to do here ?

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

well i dont see any gui window ? how will it work without window ?

also have a look at this ,

viewtopic.php?f=108&t=50510

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

Max can't you shutup??? Why will I SHOW MY WHOLE CODE? YOU WANT TO LEAK IT, I BET. Et-win is more helpful.

@Etwin - I will try it

Posted
Max can't you shutup??? Why will I SHOW MY WHOLE CODE? YOU WANT TO LEAK IT, I BET. Et-win is more helpful.

@Etwin - I will try it

Ok , if he's more helpful to you then you can do whatever you want with your script Good Luck .

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

Et-win ty. Now one more problem came:

  
function addJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) 
marker = createMarker(x,y,z,"cylinder") bad argument ( only this much ) 
ped = createPed(pedID, x,y,z ) -- bad argument ( only this much ) 
triggerClientEvent(root,"createJob",root,jobName,teamName,pedID,desc,marker,skins,occupation) 
end 
addEvent("startJobScript", true ) 
addEventHandler('startJobScript', root, addJob ) 
  

Posted

Again spams my debugscript 3.

  
function createJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) 
marker = createMarker(x,y,z,"cylinder") 
ped = createPed(pedID, x,y,z ) 
setTimer(addEventHandler,5000,1,"onClientMarkerHit", marker, showJobWindow) 
triggerServerEvent("startJobScript", getLocalPlayer() ) 
end 
addEvent("createJob", true) 
addEventHandler("createJob", root, createJob) 
  

at createMarker bad arguement ;( Everything is defined.

Posted
function createJob( x, y, z, jobName, teamName, pedID, desc, skins, occupation ) 
  
    x, y, z = tonumber( x ), tonumber( y ), tonumber( z ) 
     
    marker = createMarker( x, y, z, "cylinder" ) 
    ped = createPed(pedID, x,y,z ) 
    setTimer( addEventHandler, 5000, 1, "onClientMarkerHit", marker, showJobWindow ) 
    triggerServerEvent("startJobScript", getLocalPlayer() ) 
end 
addEvent("createJob", true) 
addEventHandler("createJob", root, createJob) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...