-
Posts
65 -
Joined
-
Last visited
-
Days Won
1
Everything posted by cocowen
-
do u have discord , maybe most of us want male and female both
-
what if i want to increase type of styles?
-
some ped or weapon models when i use it appears WARNING: File XX.DFF in resource "XXX" contains errors. how to fix it?
-
so sad . want buy but have no chance
-
thank u two kind friend !
-
I know that if you want to play at a server , you need to download two steps , and the second steps only need to download one time , but each time you enter the server the , first step of download have to do , and my question is I am making a gamemode , the first step need to download 2Mb files then I add 600 vehilce , the first step need to download 3Mb files so I want to ask : 1.what increase the files which need to be download at first step , is it serverside script? 2.will it cause many waste of Bandwidth ? 3. do we have some function to control it ? or decrease the files size?
-
thank u
-
what a stupid boy I am thank u guys, found it here viewforum.php?f=148
-
To protecet my client script ? I remember seems there is some function such as auto_delete() or Do we have some anthoer ways to protect clientside script ?
-
Some suggest at first , the correct Translation should be this: 我们决定为中国玩家开放一个子板块,希望大家踊跃参与并转告你们的朋友 请告诉我论坛的中文名称是否准确(目前子板块名称是简体中文,但是我希望能够更加的常规一点,比如'中文语言'或者其他的翻译) 同时我们也在寻找制作组帮助我们管理论坛,候选人需要同时有比较好的英文和中文,这样我们才能更好的交流,也能更好的在论坛交流. And the tag names in home pages should be "Chinese / 中文 " such as other languages PS:球员 means football player in china , We used to use "玩家" to describe the game player Finally , I apple for the position ,too As a old gtasa online scripter who have watched MTA:VC - RACE - DM - became now the wonderfull craft and almost have all chinese server 's owner as my friend , I can manage the subforum great
-
how can i get the weapon's id
-
i can find some functions such as GetPlayerWeaponID so i can not return the weapon's id which the player is holding i just want to make a ammo script so i can use some ammo add to the weapon in my hand or there is another way to do it?
-
good morning,sir i have found a nice resource named reload which allow play use r to reload ammo,i just want to make it better i have played in a zombies d server,in the server the empty weapon never disappear like single player game , and you can buy some ammo to fill it then the gun can use again, please tell me how to do it , or give me some example so i can learn from it,thank you
-
Thank you guys , Kenix and Scooby u guys just make this clear and i finaly find a way : when player login , ask the server to send the data to client( i also have thought the ideal of scooby mentioned , and trigger twice make me think maybe there are better way) and i noctice that to do it when render is really a bad ideal thank you,too !
-
thanks for your replay outputDebugString ( "[DEBUG]getItemDes ="..tostring(items[itemid].itemdes), 3 ) this step have print the correct item id (number) and what the client code is here function draw3DOverlay() if ( type ( selectedIndex ) == "number" ) then if ( myItems[selectedIndex] ~= nil ) then if ( alpha < 200 ) then alpha = alpha + 4 else alpha = 200 end if ( windowAlpha < 180 ) then windowAlpha = windowAlpha + 3 else windowAlpha = 180 end local itemid = myItems[selectedIndex].itemid -- this step have get the id outputChatBox ( tostring(itemid) ) ItemDes = triggerServerEvent("getItemDes", _root ,itemid) outputChatBox ( tostring(ItemsInfo[itemid].itemname) ) -- get boolen here , but i need string local image = dxDrawImage(getX(45.5), getY(28.5), 64, 64, "images/1.png", 0, 0, 0, tocolor( 255, 255, 255, alpha ) ) end end end
-
in my serverside function getItemDes( itemid ) --outputDebugString ( "[DEBUG]getItemDes", 3 ) if ( type( itemid ) == "number" ) then --outputDebugString ( "[DEBUG]getItemDes is number", 3 ) if ( itemid > 0 ) then outputDebugString ( "[DEBUG]getItemDes ="..tostring(items[itemid].itemdes), 3 ) return items[itemid].itemdes end else return MISSING_ARGUMENTS end end addEvent("getItemDes", true) addEventHandler("getItemDes", _root, getItemDes) my clientside ItemsInfo = triggerServerEvent("getItemDes", _root,itemid) i want to update the item's name from server to client but the string send from server , and what i get on client is a boolen , not a string value am i right?or what's the problem ? thx