RangeR.. Posted April 18, 2015 Posted April 18, 2015 function scriptCreateTank ( localPlayer ) local localPlayer = getRandomPlayer() local x, y, z = getElementPosition ( localPlayer ) createVehicle ( 432, x, y, z ) outputChatBox ( "You've been given a tank", localPlayer ) end addEventHandler("onClientGUIClick", vipcar, scriptCreateTank, false) es ko client side use kar rha hu aur button b yahi naam sy hai magar kaam nahi kar rha MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
Ryancit2 Posted April 18, 2015 Posted April 18, 2015 Iss mein getRandomPlayer() aik server-only function hai jo ke client side par use nahi ho sakta, tum ye try karo: Client.lua function vipCarHandler() local x, y, z = getElementPosition (localPlayer) local veh = createVehicle (432, x, y, z) outputChatBox ("You've been given a tank") end addEventHandler("onClientGUIClick", vipcar, vipCarHandler, false) Pehli baat, tum ne localPlayer ko getRandomPlayer kyun kiya? getRandomPlayer koi bhi player pick karega, na ke jis ne button press kiya. Dusri baat, "onClientGUIClick" sirf client side ki event hai, is ko server par use nahi kiya ja sakta. Tisri baat, localPlayer ko define karnay ki zaroorat nahi hai, localPlayer() aik predefined function hai jo ke button press karnay wala client hota hai, in GUI cases. [Resource] Advance Voice Messaging system with 120+ languages support! [Resource] Information markers with ingame management + editable permissions! [Resource] Live weather telling app! [Resource] Send Emails from game! [HELP?] Ask Pakistani's, have fun %3C3
Anubhav Posted April 19, 2015 Posted April 19, 2015 SORRY for posting this. robin, aap ak topic bana sakto app ne help ke liya aur waha pein post karte jao. ite sara topic se board spam hora. 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
Ryancit2 Posted April 19, 2015 Posted April 19, 2015 Haan Anubhav sahi keh raha hai, main ye saare topics merge karwa deta hoon phir aik hi topic par baar baar help lena [Resource] Advance Voice Messaging system with 120+ languages support! [Resource] Information markers with ingame management + editable permissions! [Resource] Live weather telling app! [Resource] Send Emails from game! [HELP?] Ask Pakistani's, have fun %3C3
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