Jump to content

/Roll Dice Script cmd with animations


Recommended Posts

i would like to suggest [/roll] dice
What is the use case for rolling dice for an RP scenario ??

  • Gambling on the streets
  • Fictional RPG Character and adventures (D&D RolePlay)
  • And Improv RP

/Roll (1st arg: number of dices ) (2nd arg: Number sides of the dice)
the number should display what you'd rolled (Similar to /me script)

(The "Wank" Emote is required with as automation to "shake and roll the dice", then display result for Time 8 secs and allow 3 Seconds to allow the dice result to fade out in Opacity (rather then and allow to use dice in a down state)
\\\\\

EDIT AUG15: (in simple code: [ /Dice (trigger "Wank emote" + wait on finished animation + then show dice result )
https://forum.cfx.re/t/shake-dice-animation/352299/4    [/edit Aug15]

https://forum.cfx.re/t/release-dice-roller/581274 


https://forum.cfx.re/t/dice-rolling-script/487062
(dice roll with wank emote template)
  

https://github.com/SuperCoolNinja/fivem-esx_Menu_Animations-CFX/blob/master/animations/client.lua (file not longer available )
@Summer Trigger

Edited by Twang
  • Like 7
Link to post
Share on other sites
  • 2 months later...

im bumping this

 

On 2/18/2020 at 1:04 PM, vDrop said:

Yes for Gambling

No to D&D RP. 

D&D and Rolling Dice will add more Dynamic to RP, i know this for sure.
Saying no to D&D RP is basically not allowing  other bringing potential creative RP  idea  and follow thru...
this will Benefit Action and Battle for those who want to partake in LARP

2nd: The "Wank Emote" douse mimic throwing dice, as  of right now, its currently removed
 

Edited by Twang
  • Like 1
Link to post
Share on other sites

Yea, @Serpico We need the animation 100%.

 

Maybe? 
 

RequestAnimDict(‘mp_player_int_upperwank’)
local myPed = PlayerPedId(-1)
local animation = ‘mp_player_int_wank_01_enter’
local animation2 = ‘mp_player_int_wank_01_exit’
local flags = 8
TaskPlayAnim(myPed, ‘mp_player_int_upperwank’, animation, 8.0, -8, -1, flags, 0, 0, 0, 0)
Wait(650)
TaskPlayAnim(myPed, ‘mp_player_int_upperwank’, animation2, 8.0, -8, -1, flags, 0, 0, 0, 0)
Citizen.Wait(700)

From what twang linked - https://forum.cfx.re/t/shake-dice-animation/352299/4

  • Thanks 1
Link to post
Share on other sites

i would also like to add more clarity for the end user and around them,
Let say 1 person is Rolling a choice of  D3 to D100, the Landed result and sides of the dice should display together, and minimize Confusing

5sfxguV.png

Edited by Twang
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...