Tarek1 Posted September 24, 2017 Share Posted September 24, 2017 --Server Side function pedLoad ( name ) myPed = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) triggerClientEvent ("onDamange",getRootElement()) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad ) --Client Event function test () cancelEvent() end addEventHandler("onClientPedDamage",myPed,test) addEvent("onDamage",true) addEventHandler("onDamage",getRootElement(),test) Link to comment
!#NssoR_) Posted September 24, 2017 Share Posted September 24, 2017 يمكنك إختصار كل ذلك بسطر واحد ويتم وضعه بجهة الكلنت addEventHandler("onClientPedDamage",createPed ( 120, x,y,z ),cancelEvent) 2 Link to comment
Tarek1 Posted September 25, 2017 Author Share Posted September 25, 2017 3 hours ago, !#NssoR_) said: يمكنك إختصار كل ذلك بسطر واحد ويتم وضعه بجهة الكلنت addEventHandler("onClientPedDamage",createPed ( 120, x,y,z ),cancelEvent) انا عايز اعملها في السرفر سايد Link to comment
#RoLde Posted September 25, 2017 Share Posted September 25, 2017 48 minutes ago, Tarek1 said: انا عايز اعملها في السرفر سايد اعتقد ماافي فرق Link to comment
Rakan# Posted September 25, 2017 Share Posted September 25, 2017 (edited) 6 hours ago, #RoLde said: اعتقد ماافي فرق onClientPedDamage -- Client ! Edited September 25, 2017 by Rakan# Link to comment
+Source|> Posted September 25, 2017 Share Posted September 25, 2017 13 hours ago, Tarek1 said: --Server Side function pedLoad ( name ) myPed = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) triggerClientEvent ("onDamange",getRootElement()) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad ) --Client Event function test () cancelEvent() end addEventHandler("onClientPedDamage",myPed,test) addEvent("onDamage",true) addEventHandler("onDamage",getRootElement(),test) جرب كدا function pedLoad ( name ) myPed = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) triggerClientEvent ("onDamage",getRootElement()) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) --Client Event function test () cancelEvent() end addEventHandler("onClientPedDamage",myPed,test) addEvent("onDamage",true) addEventHandler("onDamage",getRootElement(),test) Link to comment
Rakan# Posted September 25, 2017 Share Posted September 25, 2017 3 hours ago, Source|> said: جرب كدا function pedLoad ( name ) myPed = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) triggerClientEvent ("onDamage",getRootElement()) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) --Client Event function test () cancelEvent() end addEventHandler("onClientPedDamage",myPed,test) addEvent("onDamage",true) addEventHandler("onDamage",getRootElement(),test) مافيه فايدة من الكود اللي فوق ابدا لازم كلنت مايبي الرجال مشكلته ~ Link to comment
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