Anubhav Posted August 15, 2014 Posted August 15, 2014 I have a script, which creates spawners. I've 2 same scripts only server.lua is diffrent. If I hit the marker it shows the GUI of firstOne. Why is that? Is it linked with it somehow/ See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 put script 2 . To Contact Me at Skype : [email protected]
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 Why? So it gets leaked? I am not putting any scripts. I am not even using exports. Can't someone explain? See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 Why? So it gets leaked? I am not putting any scripts. I am not even using exports. Can't someone explain? u must Check if u put name of marker in event Or you specified it in event source put onMarkerHit Event . To Contact Me at Skype : [email protected]
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 I used resourceRoot at second arguement. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 put the event . To Contact Me at Skype : [email protected]
Et-win Posted August 15, 2014 Posted August 15, 2014 Check if the source == marker, lol. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 Check if the source == marker, lol. Lol? I make my markers like this I change the value of Marker variable -.-. local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 Check if the source == marker, lol. Lol? I make my markers like this I change the value of Marker variable -.-. local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) and why u don't use table ? with loop . To Contact Me at Skype : [email protected]
Et-win Posted August 15, 2014 Posted August 15, 2014 Check if the source == marker, lol. Lol? I make my markers like this I change the value of Marker variable -.-. local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) How could I smell that? I didn't see any script lol. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 Guyz, I just need help. I don't need advices atm. There's a diffrent problem. Why does the resource1 GUI comes with resource2 ??? Any helps! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Markeloff Posted August 15, 2014 Posted August 15, 2014 Maybe because you are using the same variables name. Some people want it to happen, some wish it would happen, others make it happen.
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 Same variable names? Hmm yes! I'll try to fix it by changing variable names ;d See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 Thanks alot! Something new came.. function markerHit2 (hitPlayer, matchingDimension) if isPedInVehicle (hitPlayer) then return end if getElementType(hitPlayer) == "player" then if getTeamName(getPlayerTeam(hitPlayer)) == "Parademics" then triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) else outputChatBox("You're not in the team for this specific marker!", hitPlayer) end end end Now it opens window if he doesn't have team why? See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 Thanks alot!Something new came.. function markerHit2 (hitPlayer, matchingDimension) if isPedInVehicle (hitPlayer) then return end if getElementType(hitPlayer) == "player" then if getTeamName(getPlayerTeam(hitPlayer)) == "Parademics" then triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) else outputChatBox("You're not in the team for this specific marker!", hitPlayer) end end end Now it opens window if he doesn't have team why? u must put getElementType in First and u must Check if player have team then Check his team To Contact Me at Skype : [email protected]
Et-win Posted August 15, 2014 Posted August 15, 2014 Thanks alot!Something new came.. function markerHit2 (hitPlayer, matchingDimension) if isPedInVehicle (hitPlayer) then return end if getElementType(hitPlayer) == "player" then if getTeamName(getPlayerTeam(hitPlayer)) == "Parademics" then triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) else outputChatBox("You're not in the team for this specific marker!", hitPlayer) end end end Now it opens window if he doesn't have team why? u must put getElementType in First and u must Check if player have team then Check his team He says that the GUI get's opened if he isn't in that team, you can clearly see that this shouldn't be a problem because if he isn't in a team the script doesn't even continue. Btw: You missed an end. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Anubhav Posted August 15, 2014 Author Posted August 15, 2014 Thanks alot!Something new came.. function markerHit2 (hitPlayer, matchingDimension) if isPedInVehicle (hitPlayer) then return end if getElementType(hitPlayer) == "player" then if getTeamName(getPlayerTeam(hitPlayer)) == "Parademics" then triggerClientEvent (hitPlayer, "openWnd2", hitPlayer) else outputChatBox("You're not in the team for this specific marker!", hitPlayer) end end end Now it opens window if he doesn't have team why? u must put getElementType in First and u must Check if player have team then Check his team He says that the GUI get's opened if he isn't in that team, you can clearly see that this shouldn't be a problem because if he isn't in a team the script doesn't even continue. Btw: You missed an end. I din't missed any end, lol. I've the team, it outputs that I don't have the team and opens the GUI. What is the problem? See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Arnold-1 Posted August 16, 2014 Posted August 16, 2014 u guyz wot? i will help anbhav on skype. Ingame Name: Arnold If you need my help, contact me on Skype @bshr.ara NOTE:DO NOT ASK ME FOR SCRIPTS, ASK ME FOR HELP
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now