-
Posts
148 -
Joined
-
Last visited
Everything posted by Zuher Laith
-
Well, I Will do that .. First: Business Mod, I guess Everyone know's it right? but i will put it any way.
-
@MrTasty Here is The DxOutput Function In the Original "business" Server Side: function dxOutputMessage(message, player, r, g, b) triggerClientEvent(player, "business.dxOutputMessage", player, message, r, g, b); end No Mistake's in here Right ? .. I Tried to Change "player" to "nil" as you Suggested , didn't worked ! Remember The Function Works In Client Side, but doesn't work on Server Side .. Waiting for Reply ..
-
Any one didn't see the topic ? :\ This important a little bit .. please help
-
Alright, So i tried the Same One , on Client & Server "outputMessage" This is what is Give's in the Console: [18:25:53] WARNING: [gamemodes]\business\scripts\core.server.lua:83: Bad argumen t @ 'triggerClientEvent' [Expected element at argument 2, got string 'business.d xOutputMessage'] Here's the Code of Line 83: function dxOutputMessage(message, player, r, g, b) triggerClientEvent(player, "business.dxOutputMessage", player, message, r, g, b); end This is Strange .. Because it Works On Client Side, but do not works on Server Side ! Help Please ..
-
Hold On .. I've got an Error While Output in Server Side: [17:30:24] ERROR: Shop\Server.lua:37: call: failed to call 'business:Player:outputMessage' I Used "Player.outputMessage" .. call(getResourceFromName("business"), "Player:outputMessage", "Message", 255, 0, 255) Because in "Business Mod" In Server Side, He Used "player:outputMessage" I Don't Understand the Problem ..
-
@tosfera & @IIYAMA You Guys are Awesome ! .. Thanks for Help
-
@tosfera So I Will Export the Functions to The Original Mod Meta .. function="outputMessage" type="client"/> function="outputMessage" type="server"/> function="dxOutputMessage" type="server"/> function="Player:outputMessage" type="server"/> Right ? .. Now i Will go to the Mod that i want to call the function on .. call(getResourceFromName("business"), "outputMessage", "Message", "r", "g", "b") I think what i'am talking about make's sense right ? .. Sorry for Bad Exp, I'am new around here.
-
@tosfera Thanks for The Idea's .. but i guess this Will Request from me some Experience .. and Time and support for the problems i have with it. So I will just use the Function he made, it shorts every thing for me. but till now i didn't get the Answer for my first Question ..
-
Greetings Everyone .. I Was looking for a Brand new outputMessage to Show The Error Message So The Content is When i Call "outputMessage", It Popup an Message With What i typed. To make the Idea Clear, Here is an Code-Ex: outputMessage("# Test Message", 255, 0, 255); I Found this in Business Mod At Community (https://community.multitheftauto.com/index.php?p=resources&s=details&id=2847) So this Mod has The OutputMessage Functions .. Here is a Code Look on his Functions: So this is "His" Functions that he used to Ouput Message WHAT I WANT IS Install This Output Functions to Other Mods .. Can i Do that? OR Can i Make a Custom mod for this Func?, So I Can Just Call "outputMessage" On every Mod i have ? Waiting for Reply.
-
@WhoAmI Works Like Magic ! Great !! Thanks for help my friend.
-
@WhoAmI Yes that's what i was pointing at .. What about the Client Side? because i'am new around here because i want to Set the Groups Into a Label Called Project.CurrentGroupLabel I guess i can't Set the Groups Into the Label In Server Side Right ? ..
-
Could you tell me more please ? or Giving me an Example Code at least ? .. I Didn't Got the Idea ..
-
Problem Sloved. My Bad because i forgot to Change "Project.Background" to my Mod Name .. That's make me stupid actually Thank's Everyone for help!
-
The Script Doesn't Giving any Errors .. It Works Like Charm ! The Only Problem With "BindkeyFunc" (Check First Post for Code)
-
My META Is Fine, Also the MOD Works fine .. The Only Problem with BindkeyFunc it's not showing up the image "Project.Background"
-
I told you that i'am using an image , So i need to hide/show image ! not a MTA Window ! Problem is in "BindkeyFunc"
-
We are done of this now .. What about the Bindkey ?
-
Might be like this? Project = {} GUIEditor = { gridlist = {}, staticimage = {}, label = {} } This is what the "guieditor" output for me .
-
Hello Everyone Few days ago i was creating a new design in "guieditor", I Didn't used the MTA Default Window, I Used an Image (Window Style) So The Problem Is, When I Bindkey, I Get Nothing Showing Up! Here's my Code: local Key = "F10" BindKeyFunc = function () guiSetVisible(Project.Background ,not guiGetVisible(Project.Background)); showCursor(guiGetVisible(Project.Background)); end bindKey(Key,"down",BindKeyFunc); -- Here is the ID's: Project.Background = guiCreateStaticImage((screenW - 357) / 2, (screenH - 304) / 2, 357, 304, "img.png", false) Project.WindowTittle = guiCreateLabel(87, 0, 183, 20, "Main", false, Project.Background) Here is The Meta: <file src="img.png" /> am I Missing Something Here ?.. Waiting for Reply.
-
Greetings Everyone .. Recently I was looking for an Code to Get The Player Groups to Make the Idea Clear .. Example: In Admin Panel (P) , On Selected Player, it Gave's you the Player Groups , Like (Console, Admin, Everyone) etc. So Basically What I want is to Get the Logged User Groups & Insert it On a Label .. So it's Only Give's the Player Groups Information the Source Player, Not for Another Player. Here is What i Tried: - I tried to Copy the Code in Admin Panel Of Setting the Player Groups, but After Taking a Look on the Code, It was Difficult for Me because I'am not that "PRO" Level At Lua. Any Suggestions Or help Please ? .. Waiting for Reply.
-
About Import a TXD i want the TXD Position on Ped Hand! How to do that please .. ? Thanks.
-
Hello all.. i have a question please. . i have a script (like mobile or something else) So if guiSetVisible(True) then Will Set ped animation to phone_in Anim in PED List. Notice That there is a Animation for Make it FREEZING On phone_in Animation. & if guiSetVisible(False) then Will Set ped Animation to Phone_out Anim in PED List. Also ,, How to put a Tool Or Something in Player Hand Like Mobile ? i Have a Design for My Script ,, in .txd So Please Help ^_^" thanks.
-
ابداع .. بالمناسبة الروابط كلها محذوفة .. يرجى اعادة الرفع. بالتوفيق. NiGht