Hell-Mate
Members-
Posts
198 -
Joined
-
Last visited
Everything posted by Hell-Mate
-
Great job Noneatme but its a little bit hard for newbies to install this script as it requires a LUA and MYSQl experiance and also MYSQl data base .
-
EPIC !! Keep it up SATAN
-
Hello community, i just finished my mechanic job script and its now done 100% i made this script to a project but this project fails so i decided to sell it How it Works ? ----------------- 1) get skin == 50 from the GUI 2) now your are employed as a mechanic 3) find a damaged car 4) enter the car as seat == 1 ( someone must be at seat 0 ) ( VehicleOwner ) 5) a GUI will open to the driver ( seat == 0 ) asking him to accept or deny fix. 6) if accepted then the car will be fixed and money will be taken randomly from 1000 or 4000 from driver and given to mechanic. 7) some cool effect when fixing car. Done ---------------------------------------------------------------------------------------------------------------------------------------- if anyone would like to buy it just add me on skype : fady_jo. to talk about price and about to give him some more details about the script. Script is made by me from line 1 to the end so dont reply saying scammer or whatever .. or stealing script or whatever of this stuffs.
-
Exacty what i said ^^
-
dude, as i learned in scripting and as i learned from WhoAmI in this topic i deduced that > addEvent is to add an event which can be triggered to another global event. it will be useless if its not triggered to another global event .. Got it ?
-
i know i know, all what i meant is : i must create an export for the event i will add. understood ? else its using only for triggering .. .............is that right ? @WhoAmI ?
-
you dont get what i mean. addEvent is using for triggering but what i mean is to create an event like onPlayerTeamChange and so on. so i can use export for this as WhoAmI said
-
I think now i got it 70% another example for what i learned .. lets say i will export setPlayerWantedLevel _ExportName = setPlayerWantedLevel return return _ExportName ( thePlayer, stars ) hmmmmm ?
-
i think i got it 50%, let me explain what i learned : for example i want to export outputChatBox > _ExportName = outputChatBox return return _ExportName ( source ) hmm ?
-
hmmm i dont understand this part _setPlayerTeam = setPlayerTeam why you put _ ?? i will tell you what i think and you tell me its right or wrong .. _ExportName? = IDKThisPart after _HereIsTheExportName right ? answer this another ques : what is that part ? >> IDKThisPart
-
Yea i know, but idk how you created it, thats why i made this topic. to let someone explain me how or give me a TUT
-
hmm , explain .. ? how ?
-
Hello community.. As the title says " Is it possible to create an event " ? some time i search about events and i dont find it so is it possible to create an event ? like onPlayerTeamChange, onPlayerElementDateChange and so on. i think it possible by exporting ?? if yes then can some one explain me how to export ? or give me a clear TUT about exporting that i can really learn from it. really this coding thingy made me mad when i finish something and be good on it i deduce that i should learn another thing and so on finished learning MTA lua 90% then i deduced that there is mySQL and SQLite and so on . well never mind about my story lets talk about this topic's target >> is it possible to create an event ??. Thanks
-
Okay Thanks bro , #Solved #LockRequest
-
it worked without this change .. can u explain what this change will edit please ? and im really very sorry for wasting your time
-
its not spamming .. i just replying on the posts which i want to give my opinion, Not all like u said ^^
-
i also tried this and nothing so i did like i posted in the previous reply, and also made the type="server" and now worked but i still dont know if it will destroy for only me or all players .. will test it when any friend join my server later.
-
I fixed it by adding --Client addEvent ( "destroyonleave", true ) function destroyonleave () destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end addEventHandler ( "destroyonleave", getRootElement (), destroyonleave ) --Server _setPlayerTeam = setPlayerTeam addEvent( "onPlayerChangeTeam", true ) function setPlayerTeam ( thePlayer, theTeam ) if not thePlayer or not theTeam then return false end local oldTeam = getPlayerTeam( thePlayer ) triggerEvent ( "onPlayerChangeTeam", thePlayer, theTeam, oldTeam ) return _setPlayerTeam ( thePlayer, theTeam ) end addEventHandler ( "onPlayerChangeTeam", root, function ( theNewTeam, theOldTeam ) local teamName = getTeamName( theNewTeam ) if teamName ~= "Criminal" then triggerClientEvent ( "destroyonleave", theNewTeam, theOldTeam, teamName ) end end ) and thank you very much bro for telling me the exporting thingy Thanks
-
Same Error
-
Now there is another Error > ERROR : trashman/trash_s.lua:20: call: failed to call 'robberjob:setPlayerTeam'
-
Error : trashman/trash_s.lua:20: exports : Call to non-running server resource (resource_name) EDIT : And chagnder resource_name to name of resource, where you got this event. ( i dont understand what u mean )
-
then where should i add this line ?
-
and remove the other lines that you wrote ? and the team is Criminal not Civilian ..
-
I have no idea about exporting
-
with another job, with this line >> setPlayerTeam ( source, getTeamFromName ( "Civilian" ) )
